_base_search.html 3.88 KB
Newer Older
1
{% load i18n %}
2
<form class="form-horizontal  hidden-print" method="GET" action="{% url "representative-list" %}">
Jamesie Pic's avatar
Jamesie Pic committed
3
    <div class="input-group">
4
        <label class="sr-only" for="rechercher">{% trans "Search" %}</label>
5
        <input type="text" class="form-control" name="search" placeholder="{% trans "Search" %}" id="rechercher">
Jamesie Pic's avatar
Jamesie Pic committed
6
        <span class="input-group-btn">
Robin's avatar
Robin committed
7
            <button class="btn btn-primary" type="submit">
Jamesie Pic's avatar
Jamesie Pic committed
8
9
10
11
12
13
                <span class="glyphicon glyphicon-search"></span>
            </button>
        </span>
    </div>
</form>

14
<button class="btn btn-default" type="button" data-toggle="collapse" data-target="#formMEP" aria-expanded="false" aria-controls="formMEP">
15
    {% trans "More search options" %}
Jamesie Pic's avatar
Jamesie Pic committed
16
17
</button>

18
19
20
21
22
23
24
25
<div class="collapse" id="formMEP">
  <form id="search-form" class="form-horizontal">
    <div class="form-group">
      <label class="col-sm-3" for="country">{% trans "Country" %}</label>
      <div class="col-sm-9">
        <select class="form-control" id="country">
          <option>{% trans "All" %}</option>
          {% for country in countries %}
26
          <option value="{{ country.id }}" data-url="{% url "representative-list" %}?country={{ country.pk }}">
27
28
29
30
31
32
            {{ country.name }}
          </option>
          {% endfor %}
        </select>
      </div>
    </div>
Jamesie Pic's avatar
Jamesie Pic committed
33

34
35
36
37
38
39
    <div class="form-group">
      <label class="col-sm-3" for="party">{% trans "Party" %}</label>
      <div class="col-sm-9">
        <select class="form-control" id="party">
          <option>{% trans "All" %}</option>
          {% for party in parties %}
40
          <option value="{{ party.pk }}" data-url="{% url "representative-list" %}?group={{ party.pk }}">
41
42
43
44
45
46
            {{ party.name }}
          </option>
          {% endfor %}
        </select>
      </div>
    </div>
Jamesie Pic's avatar
Jamesie Pic committed
47

48
49
50
51
52
53
    <div class="form-group">
      <label class="col-sm-3" for="delegation">Delegation</label>
      <div class="col-sm-9">
        <select class="form-control" id="delegation">
          <option>{% trans "All" %}</option>
          {% for delegation in delegations %}
54
          <option value="{{ delegation.pk }}" data-url="{% url "representative-list" %}?group={{ delegation.pk }}">
55
56
57
58
59
60
            {{ delegation.name }}
          </option>
          {% endfor %}
        </select>
      </div>
    </div>
61

62
63
64
65
66
67
    <div class="form-group">
      <label class="col-sm-3" for="committee">Committee</label>
      <div class="col-sm-9">
        <select class="form-control" id="committee">
          <option>{% trans "All" %}</option>
          {% for commitee in committees %}
68
          <option value="{{ commitee.pk }}" data-url="{% url "representative-list" %}?group={{ commitee.pk }}">
69
70
71
72
73
            {{ commitee.name }}
          </option>
          {% endfor %}
        </select>
      </div>
Jamesie Pic's avatar
Jamesie Pic committed
74
75
    </div>

76
77
78
79
80
81
    {% comment %}<button type="submit" class="btn btn-default">{% trans "Search" %}</button>{% endcomment %}
  </form>
</div>

{% comment %}
<!-- i don't know what is this list supposed to contain since we already have a 2 click to dossier detail btn -->
82

83
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#formDossiers" aria-expanded="false" aria-controls="formDossiers">
84
  {% trans "Explore the themes" %}
85
</button>
Jamesie Pic's avatar
Jamesie Pic committed
86

87
88
<div class="collapse" id="formDossiers">
  <form class="form-horizontal">
Jamesie Pic's avatar
Jamesie Pic committed
89

90
91
92
93
94
95
96
97
98
    <div class="form-group">
      <div class="col-sm-12">
        <select class="form-control" id="dossiers">
          <option>All</option>
          <option>Personal data protection: processing of data for the purposes of prevention, investigation, detection or prosecution of criminal offences or execution of criminal penalties, and free movement of data </option>
          <option>ACTA </option>
          <option>Personal data protection: processing and free movement of data </option>
        </select>
      </div>
Jamesie Pic's avatar
Jamesie Pic committed
99
    </div>
100
101
    <button type="submit" class="btn btn-default">Search</button>
  </form>
Jamesie Pic's avatar
Jamesie Pic committed
102
</div>
103
{% endcomment %}