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

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

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

<div class="collapse" id="moresearch">
    <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#formMEP" aria-expanded="false" aria-controls="formMEP">
21
        {% trans "Find a MEP" %}
Jamesie Pic's avatar
Jamesie Pic committed
22
23
24
25
26
    </button>

    <div class="collapse" id="formMEP">
        <form class="form-horizontal">
            <div class="form-group">
27
28
             {# Note: could we not have only one form and get rid of this field ? #}
                <label class="col-sm-2" for="name">{% trans "Name" %}</label>
Jamesie Pic's avatar
Jamesie Pic committed
29
                <div class="col-sm-10">
30
                    <input type="email" class="form-control" id="name" placeholder="{% trans "Leave empty for all" %}">
Jamesie Pic's avatar
Jamesie Pic committed
31
32
33
                </div>
            </div>
            <div class="form-group">
34
                <label class="col-sm-3" for="country">{% trans "Country" %}</label>
Jamesie Pic's avatar
Jamesie Pic committed
35
36
                <div class="col-sm-9">
                    <select class="form-control" id="country">
37
38
39
40
                        <option>{% trans "All" %}</option>
                        {% for country in countries %}
                        <option value="{{ country.id }}">{{ country.name }}</option>
                        {% endfor %}
Jamesie Pic's avatar
Jamesie Pic committed
41
42
43
44
45
                    </select>
                </div>
            </div>

            <div class="form-group">
46
                <label class="col-sm-3" for="party">{% trans "Party" %}</label>
Jamesie Pic's avatar
Jamesie Pic committed
47
48
                <div class="col-sm-9">
                    <select class="form-control" id="party">
49
50
51
52
                        <option>{% trans "All" %}</option>
                        {% for party in parties %}
                        <option value="{{ party.pk }}">{{ party.name }}</option>
                        {% endfor %}
Jamesie Pic's avatar
Jamesie Pic committed
53
54
55
56
57
58
59
60
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3" for="delegation">Delegation</label>
                <div class="col-sm-9">
                    <select class="form-control" id="delegation">
61
62
63
64
                        <option>{% trans "All" %}</option>
                        {% for delegation in delegations %}
                        <option value="{{ delegation.pk }}">{{ delegation.name }}</option>
                        {% endfor %}
Jamesie Pic's avatar
Jamesie Pic committed
65
66
67
68
69
70
71
72
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3" for="committee">Committee</label>
                <div class="col-sm-9">
                    <select class="form-control" id="committee">
73
74
75
76
                        <option>{% trans "All" %}</option>
                        {% for commitee in committees %}
                        <option value="{{ commitee.pk }}">{{ commitee.name }}</option>
                        {% endfor %}
Jamesie Pic's avatar
Jamesie Pic committed
77
78
79
                    </select>
                </div>
            </div>
80
81

            <button type="submit" class="btn btn-default">{% trans "Search" %}</button>
Jamesie Pic's avatar
Jamesie Pic committed
82
83
84
        </form>
    </div>

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

Jamesie Pic's avatar
Jamesie Pic committed
88
    <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#formDossiers" aria-expanded="false" aria-controls="formDossiers">
89
        {% trans "Explore the dossiers" %}
Jamesie Pic's avatar
Jamesie Pic committed
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
    </button>

    <div class="collapse" id="formDossiers">
        <form class="form-horizontal">

            <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>
            </div>
            <button type="submit" class="btn btn-default">Search</button>
        </form>
    </div>
108
109
    {% endcomment %}

Jamesie Pic's avatar
Jamesie Pic committed
110
</div>