_dossier_list.html 2.35 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
{% load memopol_tags %}

Nicolas Joyard's avatar
Nicolas Joyard committed
5
{% if not dossiers %}
Nicolas Joyard's avatar
Nicolas Joyard committed
6

Nicolas Joyard's avatar
Nicolas Joyard committed
7
8
9
  <p class="no-links empty text-center">
    {% trans "No dossier has been recorded yet." %}
  </p>
Nicolas Joyard's avatar
Nicolas Joyard committed
10

Nicolas Joyard's avatar
Nicolas Joyard committed
11
{% else %}
Nicolas Joyard's avatar
Nicolas Joyard committed
12

Nicolas Joyard's avatar
Nicolas Joyard committed
13
14
15
16
17
18
  <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">
Nicolas Joyard's avatar
Nicolas Joyard committed
19

Nicolas Joyard's avatar
Nicolas Joyard committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
            <div class="col-xs-12">
              <h4 class="text-center">{{ dossier.title }}</h4>

              <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
48

Nicolas Joyard's avatar
Nicolas Joyard committed
49
                &nbsp;
Nicolas Joyard's avatar
Nicolas Joyard committed
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

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

              </div>

              {% if dossier.themes.all|length %}
                <p class="text-right">
                  &nbsp;
                  {% include "blocks/_themetags.html" with themes=dossier.themes.all %}
                  &nbsp;
                </p>
              {% endif %}
            </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
65
          </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
66
          </a>
Nicolas Joyard's avatar
Nicolas Joyard committed
67
68
        </div>
      </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
69
70
71
72
    {% endfor %}
  </div>

{% endif %}