primitive 10-items per page pager
[angular-drzb] / app / partials / list.html.ep
1 <div ng-show="! ready">
2 Loading data...
3 </div>
4
5
6 <form ng-controller="ListCtrl" class="form-search" ng-show="ready">
7
8 <div class="controls-row">
9
10 <h2>Odaberite tip registracije</h2>
11
12 <label class="radio input-block-level" ng-repeat="type in RegistrationTypes" ng-switch on="type.code" ng-show="Counts[type.code] > 0">
13 <hr ng-switch-when="false">
14 <span ng-switch-default>
15  <span class="badge {{type.css_class}}">{{Counts[type.code]}}</span>
16  <input type="radio" name="search.registration_type" ng-model="search.registration_type" value="{{type.code}}" >
17  {{type.label}}
18 <!--
19  <i>{{type.description}}</i>
20 -->
21  <span class="badge" ng-repeat="subtype in filters" ng-show="Counts[type.code+'+'+subtype]"+>
22         {{Counts[type.code+'+'+subtype]}} {{subtype}}
23  </span>
24 </span>
25 </label>
26
27 </div>
28
29 <div class="controls-row">
30 Filters:
31 <label class="badge filter-{{search[filter]}}" ng-repeat="filter in filters">
32  <input ng-model="search[filter]" type="checkbox">
33  {{Counts[filter]}}
34  {{filter}}
35 </label>
36
37 </div>
38
39 <div class="controls-row">
40
41 <label>
42 Search:
43 <input class="search-query" ng-model="search.$">
44 </label>
45
46 <a class="btn btn-invert" href="" ng-click="search = {}">
47 <i class="icon-remove"></i></a>
48 <b>{{pager.results}} results</b>
49 <tt>{{search}}</tt>
50
51 <input type="number" ng-model="pager.page" min="1" max="{{pager.last_page}}">
52 <input type="number" ng-model="pager.limit">
53
54 </div>
55
56 <div ng-show="list.length">
57
58 <h2>Prijavljenje registracije {{search.registration_type}}</h2>
59
60
61 <ul>
62
63 <li ng-repeat="registration in list">
64 {{registration.nr}}
65 %= include 'registration/view'
66 </li>
67
68 </ul>
69
70 </div><!-- ng-show="list.length"-->
71
72 % if ( $lang =~ m/-dev/ ) {
73 <pre class="controls-row">
74 {{Counts}}
75 </pre>
76 % }
77
78 </form>
79