accepted page become more like registration status
[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 <br>
52 <button ng-click="search.$ = 'draft'">draft</button>
53 <button ng-click="search.$ = 'confirmation'">confirmation</button>
54 <button ng-click="search.$ = 'accepted'">accepted</button>
55 <input type="number" ng-model="pager.page" min="1" max="{{pager.last_page}}">
56 <input type="number" ng-model="pager.limit">
57
58 </div>
59
60
61 <div ng-show="list.length">
62
63 <h2>Prijavljenje registracije {{search.registration_type}}</h2>
64
65
66 <ul>
67
68 <li ng-repeat="registration in list">
69 {{registration.nr}}
70 <a class="btn btn-primary" href="#/accepted/{{registration.id}}" target="{{registration.id}}">change status</a>
71 %= include 'registration/view'
72 </li>
73
74 </ul>
75
76 </div><!-- ng-show="list.length"-->
77
78 % if ( $lang =~ m/-dev/ ) {
79 <pre class="controls-row">
80 {{Counts}}
81 </pre>
82 % }
83
84 </form>
85