deputes.html 3.17 KB
Newer Older
luxcem's avatar
luxcem committed
1 2 3 4 5 6 7 8 9
<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>
        <select id="circonscriptionFilter" class="form-control" ng-change="changeCirc()" ng-model="search.circ">
          <option></option>
luxcem's avatar
luxcem committed
10
          <option ng-repeat="circ in Circonscriptions | orderBy:circ " value="{{circ}}">{{circ}}</option>
luxcem's avatar
luxcem committed
11 12 13 14 15 16 17
        </select>
      </div>

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

      <div class="form-group col-md-4">
        <label for="statusFilter">Position</label>
        <select id="statusFilter" class="form-control" ng-change="changeStatus()" ng-model="search.status">
          <option></option>
luxcem's avatar
luxcem committed
26 27 28
          <option value="0">Inconnues</option>
          <option value="1">Opposées au texte</option>
          <option value="2">Favorables au texte</option>
luxcem's avatar
luxcem committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42
        </select>
      </div>

    </div>

    <div class="form-group">
      <input type="text" ng-model="search.name" class="form-control" placeholder="Recherche…" ng-change="changeName()">
    </div>

  </form>

  <div class="container">
    <div class="row">
      <div id="deputes-list" class="col-md-12">
luxcem's avatar
luxcem committed
43 44
        <div ng-repeat="depute in filteredDeputees" class="depute-image">
        <a href="" ng-click="selectDepute(depute)">
luxcem's avatar
luxcem committed
45
          <figure class="mask" ng-class="colorMask(depute)" fade-on-load>
luxcem's avatar
luxcem committed
46
            <img ng-src="assets/deputes/{{depute.depute.slug}}.png">
luxcem's avatar
luxcem committed
47 48 49
          </figure>
          <div class="depute-name">{{ depute.depute.nom }}</div>
        </a>
luxcem's avatar
luxcem committed
50 51 52 53 54 55 56 57 58 59 60 61 62
        <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>
          <object data="http://piphone.lqdn.fr/campaign/widgetan/pjl_renseignement/verti/fr/{{ depute.depute.slug }}" width="215" height="380"></object>
        </div>
luxcem's avatar
luxcem committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
      </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>

</div>