_base_search.html 3.92 KB
Newer Older
1
2
{% load i18n %}

3
<form class="form-horizontal" target="{% url "representative-list" %}">
Jamesie Pic's avatar
Jamesie Pic committed
4
    <div class="input-group">
5
        <label class="sr-only" for="rechercher">{% trans "Search" %}</label>
6
        <input type="text" class="form-control" name="search" placeholder="{% trans "Search" %}" id="rechercher">
Jamesie Pic's avatar
Jamesie Pic committed
7
8
9
10
11
12
13
14
        <span class="input-group-btn">
            <button class="btn btn-primary" type="button">
                <span class="glyphicon glyphicon-search"></span>
            </button>
        </span>
    </div>
</form>

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

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<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 %}
          <option value="{{ country.id }}" data-url="{% url "representative-list" group_kind="country" group=country.name %}">
            {{ country.name }}
          </option>
          {% endfor %}
        </select>
      </div>
    </div>
Jamesie Pic's avatar
Jamesie Pic committed
34

35
36
37
38
39
40
41
42
43
44
45
46
47
    <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 %}
          <option value="{{ party.pk }}" data-url="{% url "representative-list" group_kind="group" group=party.name %}">
            {{ party.name }}
          </option>
          {% endfor %}
        </select>
      </div>
    </div>
Jamesie Pic's avatar
Jamesie Pic committed
48

49
50
51
52
53
54
55
56
57
58
59
60
61
    <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 %}
          <option value="{{ delegation.pk }}" data-url="{% url "representative-list" group_kind="delegation" group=delegation.name %}">
            {{ delegation.name }}
          </option>
          {% endfor %}
        </select>
      </div>
    </div>
62

63
64
65
66
67
68
69
70
71
72
73
74
    <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 %}
          <option value="{{ commitee.pk }}" data-url="{% url "representative-list" group_kind="commitee" group=commitee.name %}">
            {{ commitee.name }}
          </option>
          {% endfor %}
        </select>
      </div>
Jamesie Pic's avatar
Jamesie Pic committed
75
76
    </div>

77
78
79
80
81
82
    {% 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 -->
83

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

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

91
92
93
94
95
96
97
98
99
    <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
100
    </div>
101
102
    <button type="submit" class="btn btn-default">Search</button>
  </form>
Jamesie Pic's avatar
Jamesie Pic committed
103
</div>
104
{% endcomment %}