--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/hdabo/templates/organisation_list.html Tue Jun 17 10:25:33 2014 +0200
@@ -0,0 +1,32 @@
+{% extends "hdabo_base.html" %}
+ {% block title %}HDA-BO : Liste des organisations{% endblock %}
+
+ {% block content %}
+ {{block.super}}
+ <p>Afficher les fiches non validées pour les lieux suivants :</p>
+ <table>
+ <tr>
+ <th class="contenttitle">Nom</th>
+ <th class="contenttitle">Fiches non validées</th>
+ <th class="contenttitle">Fiches validées</th>
+ <th class="contenttitle">Toutes les fiches</th>
+ </tr>
+ {% for item in organisations %}
+ <tr class="imageline {% cycle 'hdabooddline' 'hdaboevenline'%}">
+ <td class="contenttitle">{{ item.organisation.name|default:"_" }} (<a href="{{item.organisation.website}}" target="_blank">lien</a>)</td>
+ <td class="contenttitle">
+ {% if item.nb_unval > 0 %}
+ <a class="contenttitlelink" href="{% url 'hdabo.views.display_datasheet' ds_id=item.first_id_unval %}">{{item.nb_unval}}</a>
+ {% else %}0{% endif %}</td>
+ <td class="contenttitle">
+ {% if item.nb_val > 0 %}
+ <a class="contenttitlelink" href="{% url 'hdabo.views.display_datasheet' ds_id=item.first_id_val %}">{{item.nb_val}}</a>
+ {% else %}0{% endif %}</td>
+ <td class="contenttitle">
+ {% if item.nb_all > 0 %}
+ <a class="contenttitlelink" href="{% url 'hdabo.views.list_for_orga' orga_id=item.organisation.id valid=2 %}">{{item.nb_all}}</a>
+ {% else %}0{% endif %}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endblock %}