diff --git a/src/postorius/forms.py b/src/postorius/forms.py index eec1361..5b4b1df 100644 --- a/src/postorius/forms.py +++ b/src/postorius/forms.py @@ -54,12 +54,16 @@ label=_('Mail Host'), error_messages={'required': _('Please enter a domain name'), 'invalid': _('Please enter a valid domain name.')}, - required=True) + required=True, + help_text=_('Example: domain.org'), + ) web_host = forms.CharField( label=_('Web Host'), error_messages={'required': _('Please enter a host name'), 'invalid': _('Please enter a valid host name.')}, - required=True) + required=True, + help_text=_('Example: http://www.domain.org'), + ) description = forms.CharField( label=_('Description'), required=False) diff --git a/src/postorius/templates/postorius/domain_confirm_delete.html b/src/postorius/templates/postorius/domain_confirm_delete.html index d728b3f..96fe721 100644 --- a/src/postorius/templates/postorius/domain_confirm_delete.html +++ b/src/postorius/templates/postorius/domain_confirm_delete.html @@ -8,11 +8,17 @@ {% load nav_helpers %} {% block main %} -

{% trans 'Confirm Deletion' %}

+ + +

{% 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 881885d..da4c017 100644 --- a/src/postorius/templates/postorius/domain_index.html +++ b/src/postorius/templates/postorius/domain_index.html @@ -6,32 +6,34 @@ {% endblock %} {% block 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 + +

{% 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 %} diff --git a/src/postorius/templates/postorius/domain_new.html b/src/postorius/templates/postorius/domain_new.html index aa8090a..badbc25 100644 --- a/src/postorius/templates/postorius/domain_new.html +++ b/src/postorius/templates/postorius/domain_new.html @@ -7,38 +7,31 @@ {% endblock %} {% block main %} -
-

{% 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 }}
-
- -
+ + -
+ +
+ {% csrf_token %} + {{ form.non_field_errors }} + {% for field in form %} +
+ {% if field.errors %} +
{{ field.errors }}
+ {% endif %} + +
{{ field|add_form_control }}
+

+ {{ field.help_text }} +

+
+ {% endfor %} +
+
+ +
+
+
+ {% endblock main %} diff --git a/src/postorius/templates/postorius/lists/index.html b/src/postorius/templates/postorius/lists/index.html index df07dc5..6c76705 100644 --- a/src/postorius/templates/postorius/lists/index.html +++ b/src/postorius/templates/postorius/lists/index.html @@ -6,48 +6,49 @@ {% endblock %} {% block main %} -
-

{% trans 'Mailing Lists' %}

-
- {% if user.is_superuser %} -

- {% if domain_count < 2 %} - {% trans 'Create New Domain' %} - {% endif %} - {% trans 'Create New List' %} -

- {% endif %} - {% if lists|length > 0 %} -
- - - - - - - - - - {% for list in lists %} - - - - - - {% endfor %} - -
{% trans 'List name' %}{% trans 'Post address' %}{% trans 'Description' %}
- {{ list.display_name }} - {% if not list.settings.advertised %} ({% trans 'unadvertised' %}*){% endif %} - {{ list.fqdn_listname }}{{ list.settings.description }}
-
- {% if user.is_superuser %} - * {% trans 'Only admins see unadvertised lists in the list index.' %} - {% endif %} - {% include 'postorius/_pagination.html' with page=lists %} - {% else %} -

{% trans 'There are currently no mailing lists.' %}

- {% endif %} -
+ + + + {% if user.is_superuser %} +

+ {% if domain_count < 2 %} + {% trans 'Create New Domain' %} + {% endif %} + {% trans 'Create New List' %} +

+ {% endif %} + {% if lists|length > 0 %} +
+ + + + + + + + + + {% for list in lists %} + + + + + + {% endfor %} + +
{% trans 'List name' %}{% trans 'Post address' %}{% trans 'Description' %}
+ {{ list.display_name }} + {% if not list.settings.advertised %} ({% trans 'unadvertised' %}*){% endif %} + {{ list.fqdn_listname }}{{ list.settings.description }}
+
+ {% if user.is_superuser %} + * {% trans 'Only admins see unadvertised lists in the list index.' %} + {% endif %} + {% include 'postorius/_pagination.html' with page=lists %} + {% else %} +

{% trans 'There are currently no mailing lists.' %}

+ {% endif %} + {% endblock main %} diff --git a/src/postorius/templates/postorius/lists/new.html b/src/postorius/templates/postorius/lists/new.html index 6a215a4..3560ee2 100644 --- a/src/postorius/templates/postorius/lists/new.html +++ b/src/postorius/templates/postorius/lists/new.html @@ -7,38 +7,38 @@ {% endblock %} {% block main %} -
-

{% trans 'Mailing Lists' %}

-
-
- {% trans 'Create a new List' %} - {% csrf_token %} - {% for field in form %} -
- {% if field.errors %} -
-
{{ field.errors }}
-
- {% endif %} - -
- {% if field|fieldtype == 'RadioSelect' %} - {% for choice in field %} - - {% endfor %} - {% else %} - {{ field|add_form_control }} - {% endif %} -
-
- {% endfor %} -
- -
-
-
+ + + +
+ {% csrf_token %} + {% for field in form %} +
+ {% if field.errors %} +
{{ field.errors }}
+ {% endif %} + +
+ {% if field|fieldtype == 'RadioSelect' %} + {% for choice in field %} + + {% endfor %} + {% else %} + {{ field|add_form_control }} + {% endif %} +
+
+ {% endfor %} +
+
+ +
+
+
+ {% endblock %}