diff --git a/src/postorius/templates/postorius/menu/mm_user_nav.html b/src/postorius/templates/postorius/menu/mm_user_nav.html new file mode 100644 index 0000000..94416c0 --- /dev/null +++ b/src/postorius/templates/postorius/menu/mm_user_nav.html @@ -0,0 +1,8 @@ +{% load i18n %} +
+ {{ mm_user.address }} + +
diff --git a/src/postorius/templates/postorius/users/index.html b/src/postorius/templates/postorius/users/index.html new file mode 100644 index 0000000..49fd9da --- /dev/null +++ b/src/postorius/templates/postorius/users/index.html @@ -0,0 +1,32 @@ +{% extends "postorius/base.html" %} +{% load i18n %} + +{% block main %} + {% if user.is_superuser %} + + {% endif %} +

{% trans 'Users' %}

+ + + + + + + + + + {% for mm_user in mm_users %} + + + + + {% endfor %} + +
{% trans 'Email' %}{% trans 'Display name' %}
+ {% for address in mm_user.addresses|slice:":1" %}{{ address }}{% endfor %} + + {{ mm_user.display_name }} +
+{% endblock main %} diff --git a/src/postorius/templates/postorius/users/new.html b/src/postorius/templates/postorius/users/new.html new file mode 100644 index 0000000..273ab51 --- /dev/null +++ b/src/postorius/templates/postorius/users/new.html @@ -0,0 +1,12 @@ +{% extends extend_template %} +{% load i18n %} + +{% block main %} +

{% trans "Add a new User" %}

+
{% csrf_token %} + {{ form.as_p }} +
+ +
+
+{% endblock main %} diff --git a/src/postorius/templates/postorius/users/summary.html b/src/postorius/templates/postorius/users/summary.html new file mode 100644 index 0000000..689f215 --- /dev/null +++ b/src/postorius/templates/postorius/users/summary.html @@ -0,0 +1,17 @@ +{% extends extend_template %} +{% load i18n %} + +{% block main %} + {% include 'postorius/menu/mm_user_nav.html' %} +

{% trans 'Mailman User' %}

+ +

Display name: {{ mm_user.display_name}}

+ +

Valid email addresses for this account:

+ + +{% endblock main %}