_dossier_list.html 2.1 KB
Newer Older
Nicolas Joyard's avatar
Nicolas Joyard committed
1
{% load i18n %}
2
{% load fontawesome %}
Nicolas Joyard's avatar
Nicolas Joyard committed
3
4
5
6
7
8
9
10
11
12
13
14
{% load memopol_tags %}

<div class="row card-list">
  {% for dossier in dossiers %}
    <div class="col-xs-12 col-md-4 dossier-card">
      <div class="thumbnail">
        <a href="{% url 'dossier-detail' dossier.pk %}" class="custom-thumbnail custom-invisible">
        <div class="row">

          <div class="col-xs-12">
            <h4 class="text-center">{{ dossier.title }}</h4>

Nicolas Joyard's avatar
Nicolas Joyard committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
            <div class="lead">
              <div class="pull-right">
                {% if dossier.nb_proposals > 0 %}
                  <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="{% trans 'Proposals' %}">
                    {% fontawesome_icon "pencil" %}
                    <span class="badge">{{ dossier.nb_proposals }}</span>
                  </span>
                {% endif %}

                {% if dossier.nb_recommendations > 0 %}
                  <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="{% trans 'Recommendations' %}">
                    {% fontawesome_icon "eye" %}
                    <span class="badge">{{ dossier.nb_recommendations }}</span>
                  </span>
                {% endif %}

                {% if dossier.nb_documents > 0 %}
                  <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="{% trans 'Documents' %}">
                    {% fontawesome_icon "file" %}
                    <span class="badge">{{ dossier.nb_documents }}</span>
                  </span>
                {% endif %}

                &nbsp;
              </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
40
41
42
43
44
45
46

              &nbsp;

              {% for chamber in dossier.chambers %}
                {{ chamber|chamber_icon }}
              {% endfor %}

Nicolas Joyard's avatar
Nicolas Joyard committed
47
            </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
48

Nicolas Joyard's avatar
Nicolas Joyard committed
49
50
51
52
53
54
55
            {% if dossier.themes.all|length %}
              <p class="text-right">
                &nbsp;
                {% include "blocks/_themetags.html" with themes=dossier.themes.all %}
                &nbsp;
              </p>
            {% endif %}
Nicolas Joyard's avatar
Nicolas Joyard committed
56
57
58
59
60
61
62
          </div>
        </div>
        </a>
      </div>
    </div>
  {% endfor %}
</div>