deputes.html 3.37 KB
Newer Older
luxcem's avatar
luxcem committed
1
2
3
4
5
6
<div id="deputes-block" ng-controller="DeputesCtrl">
  <h1>Refusez cette loi de surveillance : Appelez vos députés</h1>
  <form class="container-fluid">
    <div class="row">
      <div class="form-group col-md-4">
        <label for="circonscriptionFilter">Circonscription</label>
luxcem's avatar
luxcem committed
7
        <select id="circonscriptionFilter" class="form-control" ng-change="applySearch()" ng-model="search.circ">
luxcem's avatar
luxcem committed
8
          <option></option>
luxcem's avatar
luxcem committed
9
          <option ng-repeat="circ in Circonscriptions | orderBy:circ " value="{{circ}}">{{circ}}</option>
luxcem's avatar
luxcem committed
10
11
12
13
14
        </select>
      </div>

      <div class="form-group col-md-4">
        <label for="groupFilter">Groupe</label>
luxcem's avatar
luxcem committed
15
        <select id="groupFilter" class="form-control" ng-change="applySearch()" ng-model="search.group">
luxcem's avatar
luxcem committed
16
          <option></option>
luxcem's avatar
luxcem committed
17
          <option ng-repeat="(groupe, nom) in Groupes | orderBy:groupe" value="{{ groupe }}">{{ groupe }} - {{ nom }}</option>
luxcem's avatar
luxcem committed
18
19
20
21
22
        </select>
      </div>

      <div class="form-group col-md-4">
        <label for="statusFilter">Position</label>
luxcem's avatar
luxcem committed
23
        <select id="statusFilter" class="form-control" ng-change="applySearch()" ng-model="search.status">
luxcem's avatar
luxcem committed
24
          <option></option>
luxcem's avatar
luxcem committed
25
          <option value="0">Inconnues</option>
luxcem's avatar
luxcem committed
26
          <option value="1">Opposé·e·s au texte</option>
luxcem's avatar
luxcem committed
27
          <option value="2">Favorables au texte</option>
luxcem's avatar
luxcem committed
28
29
30
31
32
33
        </select>
      </div>

    </div>

    <div class="form-group">
luxcem's avatar
luxcem committed
34
      <input type="text" ng-model="search.name" class="form-control" placeholder="Recherche…" ng-change="applySearch()">
luxcem's avatar
luxcem committed
35
36
37
38
39
40
41
    </div>

  </form>

  <div class="container">
    <div class="row">
      <div id="deputes-list" class="col-md-12">
luxcem's avatar
luxcem committed
42
43
        <div ng-repeat="depute in filteredDeputees" class="depute-image">
        <a href="" ng-click="selectDepute(depute)">
luxcem's avatar
luxcem committed
44
          <figure class="mask" ng-class="colorMask(depute)" fade-on-load>
luxcem's avatar
luxcem committed
45
            <img ng-src="assets/deputes/{{depute.depute.slug}}.png">
luxcem's avatar
luxcem committed
46
47
48
          </figure>
          <div class="depute-name">{{ depute.depute.nom }}</div>
        </a>
luxcem's avatar
luxcem committed
49
50
51
52
53
54
55
56
57
58
59
        <div class="depute-info" ng-show="depute.show">
          <h3>{{ depute.depute.nom }}</h3>
          <ul>
            <li ng-repeat="email in depute.depute.emails">
              <a ng-href="mailto:{{email.email}}">{{ email.email }}</a>
            </li>
            <li ng-if="depute.infos.twitter">Twitter : <a ng-href="https://twitter.com/{{ depute.infos.twitter }}">@{{ depute.infos.twitter }}</a></li>
            <li ng-if="depute.infos.website"><a ng-href="{{ depute.infos.website }}">{{ depute.infos.website }}</a></li>
            <!-- <li><a ng-href="{{depute.depute.url_an}}">{{ depute.depute.url_an }}</a></li> -->
            <!-- <li><a ng-href="{{depute.depute.url_nosdeputes}}">{{ depute.depute.url_nosdeputes }}</a></li> -->
          </ul>
luxcem's avatar
luxcem committed
60
          <object data="https://piphone.lqdn.fr/campaign/widgetan/pjl_renseignement/verti/fr/{{ depute.depute.slug }}" width="215" height="380"></object>
luxcem's avatar
luxcem committed
61
        </div>
luxcem's avatar
luxcem committed
62
63
64
65
66
67
68
69
70
71
72
73
74
75
      </div>
    </div>
  </div>

  <div class="clear"></div>

  <div id="deputes-pagination">
    <pagination
      items-per-page="numPerPage" total-items="totalItems"
      ng-model="currentPage" ng-change="applyPaginate()"
      max-size="5" rotate="false">
      </pagination>
  </div>

luxcem's avatar
luxcem committed
76
77
  <h2>Un député au hasard ?</h2>
  <div style="text-align: center">
luxcem's avatar
luxcem committed
78
    <object data="https://piphone.lqdn.fr/campaign/widgetan/pjl_renseignement/horiz/fr" width="630" height="200"></object>
luxcem's avatar
luxcem committed
79
  </div>
luxcem's avatar
luxcem committed
80
</div>