representative_detail_mandates.html 972 Bytes
Newer Older
1
2
3
4
5
6
7
8
{% extends 'representatives/representative_detail.html' %}

{% load i18n %}
{% load memopol_tags %}

{% block representative_content %}

  <div class="row">
9
10
11
12
13
14
15
16
17
18
    <div class="col-sm-6 text-center">
      <h5>{% trans "Current mandates" %}</h5>

      <div class="col-sm-12 current-mandates">
        {% for mandate in mandates %}
          {% if mandate.end_date|mandate_date:'d/m/Y' == 'present' %}
            {% include "representatives/_mandate_block.html" with weight_threshold=100 %}
          {% endif %}
        {% endfor %}
      </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
19
    </div>
20
21
22
23
24
25
26
27
28
29
30

    <div class="col-sm-6 text-center">
      <h5>{% trans "Past mandates" %}</h5>

      <div class="col-sm-12 past-mandates" >
        {% for mandate in mandates %}
          {% if mandate.end_date|mandate_date:'d/m/Y' != 'present' %}
            {% include "representatives/_mandate_block.html" with weight_threshold=0 %}
          {% endif %}
        {% endfor %}
      </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
31
    </div>
32
33
34
  </div>

{% endblock %}