]> git.0d.be Git - panikdb.git/blobdiff - panikdb/templates/aa/user_list.html
add a view to list members
[panikdb.git] / panikdb / templates / aa / user_list.html
diff --git a/panikdb/templates/aa/user_list.html b/panikdb/templates/aa/user_list.html
new file mode 100644 (file)
index 0000000..bad3ba3
--- /dev/null
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block appbar %}
+<h2>{% trans "Members" %}</h2>
+{% endblock %}
+
+{% block content %}
+<div class="section padded">
+<form>
+  <input name="q" type="search" value="{{ request.GET.q }}"> <button>{% trans 'Search' %}</button>
+</form>
+</div>
+
+<table class="main">
+{% for user in object_list %}
+  <tr>
+    <td>{{ user }}</td>
+    <td>{% if user.is_ca %}CA{% endif %}
+        {% if user.is_cp %}CP{% endif %}</td>
+    <td>{{ user.active_emissions|join:", " }}</td>
+    <td>{% if user.share_contact_details and user.email %}<a href="mailto:{{ user.email }}">{{ user.email }}</a>{% endif %}</td>
+    <td>{% if user.share_contact_details %}{{ user.phone|default:"" }} {{ user.mobile|default:"" }}{% endif %}</td>
+  </tr>
+{% endfor %}
+</table>
+
+{% include "gadjo/pagination.html" %}
+
+{% endblock %}