representative_view.html 1.57 KB
Newer Older
1
{% extends 'base.html' %}
2
{% load by_group_url %}
3
4
5
6
7
8
9
10

{% block content %}

<p style="float: left">
  <img src="{{ representative.photo }}">
</p>

<h1>{{ representative.full_name }}</h1>
11
12
<p>
  <strong>
13
14
    <a href="{{ representative.current_group_mandate|by_mandate_url }}">
      {{ representative.current_group_mandate.role }} of {{ representative.current_group_mandate.mgroup.name }}
15
16
17
    </a>
  </strong>
</p>
18
19
20

<p>Born in {{ representative.birth_place }} the {{ representative.birth_date }} ({{ representative.get_gender_display }})</p>
<p>{{ representative.country.name }}</p>
21
22

<h2 style="clear: both">Mandates</h2>
23
{% for mandate in representative.active_mandates %}
24
25
26
27
28
29
30
31
32
<div class="mandate">
  <h3>
    {{ mandate.group.name }}
    <small>
      {{ mandate.role }}
    </small>
  </h3>
  <p>
    {{ mandate.begin_date }} to {{ mandate.end_date }} <br>
33
34
35
36
    <a href="{{ mandate|by_mandate_url }}">
      <strong>{{ mandate.group.kind }}</strong> : <em>{{ mandate.group.name }} ({{ mandate.group.abbreviation }})</em> 
    </a>
    <br>
37
38
39
40
41
42
    Constituency : {{ mandate.constituency.name }} <br>
  </p>
</div>
<hr>
{% endfor %}

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<h2>Former mandates</h2>
{% for mandate in representative.former_mandates %}
<div class="mandate">
  <h3>
    {{ mandate.group.name }}
    <small>
      {{ mandate.role }}
    </small>
  </h3>
  <p>
    {{ mandate.begin_date }} to {{ mandate.end_date }} <br>
    <strong>{{ mandate.group.kind }}</strong> : <em>{{ mandate.group.name }} ({{ mandate.group.abbreviation }})</em> <br>
    Constituency : {{ mandate.constituency.name }} <br>
  </p>
</div>
<hr>
{% endfor %}


62
{% endblock %}