"""
__docformat__ = 'epytext en'
-__version__ = '0.7.0'
+__version__ = '0.7.1'
__url__ = 'http://telemeta.org'
__copyright__ = '(C) 2007-2011 Parisson'
__license__ = 'CeCILL-2'
{% extends "telemeta/admin.html" %}
+{% load telemeta_utils %}
+{% load i18n %}
-{% block tab %}
-<div class="tabs">
+{% block tabcontents %}
+ <h4>{% trans "Enumerations" %}</h4>
+
{% if enumerations %}
- <ul>
+
+ <table class="listing">
+ <thead>
+ <tr><th>{% trans "Title"%}</th></tr>
+ </thead><tbody>
{% for enum in enumerations %}
- {%ifequal enum.id enumeration_id %}
- <li class="active">{{ enum.name|capfirst }}</li>
- {%else%}
- <li><a href="{% url telemeta-enumeration-edit enum.id %}">
- {{ enum.name|capfirst }}</a></li>
- {%endifequal%}
+ <tr><td><a href="{% url telemeta-enumeration-edit enum.id %}">
+ {{ enum.name|capfirst }}</a></td></tr>
{% endfor %}
- </ul>
-{% endif %}
-</div>
-{% endblock tab %}
+ </tbody>
+ </table>
+
+ {% else %}
+ <p class="help">{% trans "No enumerations" %}</p>
+ {% endif %}
+
+{% endblock %}
{% block tabcontents %}
<h4>{% trans "Users" %}</h4>
-
+
{% if users %}
+
+ <table class="listing">
+ <thead>
+ <tr><th>{% trans "User"%}</th>
+ <th>{% trans "First Name"%}</th>
+ <th>{% trans "Last Name"%}</th>
+ <th>{% trans "E-mail"%}</th>
+ </tr>
+ </thead><tbody>
{% for user in users %}
- <li><a href="{% url telemeta-profile-detail user.username %}">{{user.username}}</a></li>
+ <tr>
+ <td><a href="{% url telemeta-profile-detail user.username %}">{{user.username}}</a></td>
+ <td>{{ user.first_name }}</td>
+ <td>{{ user.last_name }}</td>
+ <td><a href="mailto:{{ user.email }}">{{ user.email }}</a></td>
+ </tr>
{% endfor %}
+ </tbody>
+ </table>
+
{% else %}
<p class="help">{% trans "No users" %}</p>
{% endif %}
<form id="_updateinstru" method="POST" action="{% url telemeta-instrument-update %}">{% csrf_token %}
<table class="listing">
<thead>
- <tr><th class="sel"> </th><th>{% trans "Name"%}</th>
-
- </tr>
+ <tr><th class="sel"> </th><th>{% trans "Name"%}</th></tr>
</thead><tbody>
{% for record in instruments %}
<tr>