diff --git a/src/postorius/templates/postorius/domain_confirm_delete.html b/src/postorius/templates/postorius/domain_confirm_delete.html index 00e3f93..d728b3f 100644 --- a/src/postorius/templates/postorius/domain_confirm_delete.html +++ b/src/postorius/templates/postorius/domain_confirm_delete.html @@ -2,17 +2,17 @@ {% load i18n %} {% block subtitle %} -{% trans "Confirm Domain Removal | " as page_title %}{{ page_title|add:domain}} +{% trans 'Confirm Domain Removal' %} | {{ domain}} {% endblock %} {% load nav_helpers %} {% block main %}

{% trans 'Confirm Deletion' %}

- -

{% trans "Are you sure you want to permanently delete this Domain?" %}

-
{% csrf_token %} - - {% trans "Cancel" %} +

{% trans 'Are you sure you want to permanently delete this Domain?' %}

+ + {% csrf_token %} + + {% trans 'Cancel' %}
{% endblock main %} diff --git a/src/postorius/templates/postorius/domain_index.html b/src/postorius/templates/postorius/domain_index.html index cdb6455..881885d 100644 --- a/src/postorius/templates/postorius/domain_index.html +++ b/src/postorius/templates/postorius/domain_index.html @@ -2,33 +2,36 @@ {% load i18n %} {% block subtitle %} -{% trans "Domains" as page_title %}{{ page_title }} +{% trans 'Domains' %} {% endblock %} {% block main %} -

{% trans "Domain Index" %}

-

- {% trans "Create Domain" %} -

- - - - - - - - - - - - {% for domain in domains %} - - - - - - - {% endfor %} - -
{% trans "Mail Host" %}{% trans "URL Host" %}{% trans "Description" %} 
{{ domain.mail_host }}{{ domain.base_url }}{{ domain.description }}{% trans 'Delete' %}
-{% endblock main %} +
+

{% trans 'Domains' %}

+
+

{% trans 'Add Domain' %}

+
+ + + + + + + + + + + {% for domain in domains %} + + + + + + + {% endfor %} + +
{% trans 'Mail Host' %}{% trans 'URL Host' %}{% trans 'Description' %} 
{{ domain.mail_host }}{{ domain.base_url }}{{ domain.description }}{% trans 'Delete' %}
+
+
+
+{% endblock main %} \ No newline at end of file diff --git a/src/postorius/templates/postorius/domain_new.html b/src/postorius/templates/postorius/domain_new.html index ab7cfff..aa8090a 100644 --- a/src/postorius/templates/postorius/domain_new.html +++ b/src/postorius/templates/postorius/domain_new.html @@ -1,48 +1,44 @@ {% extends postorius_base_template %} {% load i18n %} +{% load bootstrap_tags %} {% block subtitle %} -{% trans "Add Domain" as page_title %}{{ page_title }} +{% trans 'Add Domain' %} {% endblock %} {% block main %} -
{% csrf_token %} - {{ form.non_field_errors }} -
- {% trans "Add a new Domain" %} - -
- {{ form.mail_host.errors }} - -
- {{ form.mail_host}} -

{% trans "Example:" %} {% trans "domain.org" %}

-
-
- -
- {{ form.web_host.errors }} - -
- {{ form.web_host}} -

{% trans "Example:" %} {% trans "http://www.domain.org" %}

-
-
- -
- {{ form.description.errors }} - -
- {{ form.description}} -

{% trans "Example:" %} {% trans "Test lists will live on this domain." %}

-
-
- -
- -
- -
-
- +
+

{% trans 'Domains' %}

+
+
+ {% csrf_token %} + {{ form.non_field_errors }} + {% trans 'Add a new Domain' %} +
+ {% if form.mail_host.errors %} +
{{ form.mail_host.errors }}
+ {% endif %} + +
{{ form.mail_host|add_form_control }}
+

{% trans 'Example' %}: domain.org

+
+
+ {% if form.web_host.errors %} +
{{ form.web_host.errors }}
+ {% endif %} + +
{{ form.web_host|add_form_control }}
+

{% trans 'Example' %}: http://www.domain.org

+
+
+ {% if form.description.errors %} +
{{ form.description.errors }}
+ {% endif %} + +
{{ form.description|add_form_control }}
+
+ +
+
+
{% endblock main %}