deputes.html 4.03 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
        <div class="depute-info" ng-show="depute.show">
          <h3>{{ depute.depute.nom }}</h3>
51

luxcem's avatar
luxcem committed
52
          <p>{{ depute.depute.groupe_sigle}} - {{ depute.depute.parti_ratt_financier }}</p>
53

luxcem's avatar
luxcem committed
54
          <ul>
55
            <li ng-if="depute.infos.twitter">Twitter : <a ng-href="https://twitter.com/{{ depute.infos.twitter }}">@{{ depute.infos.twitter }}</a></li>
luxcem's avatar
luxcem committed
56 57 58 59 60 61 62
            <li ng-repeat="email in depute.depute.emails">
              <a ng-href="mailto:{{email.email}}">{{ email.email }}</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
63
          <!--  Bloc piPhone -->
64

luxcem's avatar
luxcem committed
65 66 67 68 69 70
          <p>
            <strong>
              <a href="http://piphone.lqdn.fr/campaign/call2/pjl_renseignement?setlang=fr">Appelez</a> vos députés&nbsp;!
            </strong> <br>
              Refusez cette loi de surveillance&nbsp;!
          </p>
71

luxcem's avatar
luxcem committed
72 73 74 75 76
          <p ng-if="depute.infos.id_piphone">
            <a class="btn btn-success"
            href="https://piphone.lqdn.fr/campaign/call2/pjl_renseignement/{{ depute.infos.id_piphone }}/#mep"
            target="_blank" role="button">Appelez gratuitement</a>
          </p>
77

luxcem's avatar
luxcem committed
78
          <!-- <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
79
        </div>
luxcem's avatar
luxcem committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93
      </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
94 95
  <h2>Un député au hasard ?</h2>
  <div style="text-align: center">
luxcem's avatar
luxcem committed
96
    <object data="https://piphone.lqdn.fr/campaign/widgetan/pjl_renseignement/horiz/fr" width="630" height="200"></object>
luxcem's avatar
luxcem committed
97
  </div>
luxcem's avatar
luxcem committed
98
</div>