]> git.parisson.com Git - teleforma.git/commitdiff
cleanup user list
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 16 Dec 2013 22:28:55 +0000 (23:28 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 16 Dec 2013 22:28:55 +0000 (23:28 +0100)
teleforma/templates/telemeta/inc/user_list.html

index be273d36da4d8c75f9e095d375eda742da577a02..bb106dd66bbb16923614cee6b83c1ee4df46146b 100644 (file)
    <thead>
    <tr><th>{% trans "Last Name"%}</th>
     <th>{% trans "First Name"%}</th>
-    <th>{% trans "IEJ"%}</th>
-    <th>{% trans "Training"%}</th>
-    <th>{% trans "Procedure"%}</th>
-    <th>{% trans "Oral spe"%}</th>
-    <th>{% trans "Written spe"%}</th>
-    <th>{% trans "Oral 1"%}</th>
-    <th>{% trans "Oral 2"%}</th>
+    <th>{% trans "Email"%}</th>
+   
     <th>{% trans "Write"%}</th>
     </tr>
     </thead>
     <tr>
      <td><a href="{% url teleforma-profile-detail user.username %}">{{ user.last_name }}</a></td>
      <td><a href="{% url teleforma-profile-detail user.username %}">{{ user.first_name }}</a></td>
-
-     {% if user.student.get %}
-      {% with user.student.get as student %}
-        <td>{{ student.iej.name }}</td>
-        <td>{{ student.training }}</td>
-        <td>{{ student.procedure.code }}</td>
-        <td>{{ student.oral_speciality.code }}</td>
-        <td>{{ student.written_speciality.code }}</td>
-        <td>{{ student.oral_1.code }}</td>
-        <td>{{ student.oral_2.code }}</td>
-     {% endwith %}
-    {% elif user.professor.get %}
-        <td>{% trans "Professor" %}</td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-    {% elif user.is_staff %}
-        <td>{% trans "Administrator" %}</td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-    {% else %}
-        <td>{% trans "Unknown" %}</td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-        <td></td>
-    {%  endif %}
-    <td><a href="{% url postman_write user.username %}" class="component_icon button" id="action_orange">{% trans "Message" %}</a></td>
+     <td><a href="{% url teleforma-profile-detail user.username %}">{{ user.email }}</a></td>
+     <td><a href="{% url postman_write user.username %}" class="component_icon button" id="action_orange">{% trans "Message" %}</a></td>
     </tr>
     {% endfor %}
     </tbody>