diff --git a/templates/home.html b/templates/home.html index 34febf8..25ec35f 100644 --- a/templates/home.html +++ b/templates/home.html @@ -39,6 +39,59 @@ {% endmacro delete_modal %} +{% macro add_modal(modal_id, add_button, add_text, action, payload, button_classes, input_name, prefill=false) %} + + + +{% endmacro add_modal %} {% block content %}

Mail management

@@ -56,43 +109,15 @@ {% endfor %} - - + {{ self::add_modal(modal_id="addMail", + add_button="Add new mail", + button_classes="mt-2", + add_text="Add new mail", + action="/mail/add", + input_name="mail", + payload=[], + prefill=true) + }}

Aliases

- - + {{ self::add_modal(modal_id="addRecipient", + add_button="Add Recipient", + button_classes="mt-2 w-25", + add_text="Add a new recipient", + action="/alias/recipient/add", + input_name="recipient", + payload=["alias", alias.mail]) + }} {% endfor %}
- {% endblock content %}