Revert "always try to open registration in same target"
[angular-drzb] / app / partials / list.html.ep
1
2 <div ng-show="! ready" class="alert alert-important">
3 Loading data...
4 </div>
5
6 <form ng-controller="ListCtrl" class="form-search" ng-show="ready">
7
8
9 <fieldset ng-show="show.registration_type">
10 <legend>
11 Odaberite tip registracije
12 </legend>
13
14 <label class="radio input-block-level" ng-repeat="type in RegistrationTypes" ng-switch on="type.code" ng-show="Counts[type.code] > 0">
15 <hr ng-switch-when="false">
16 <span ng-switch-default>
17  <span class="badge {{type.css_class}}">{{Counts[type.code]}}</span>
18  <input type="radio" name="search.registration_type" ng-model="search.registration_type" value="{{type.code}}" >
19  {{type.label}}
20 <!--
21  <i>{{type.description}}</i>
22 -->
23  <span class="badge" ng-repeat="subtype in filters" ng-show="Counts[type.code+'+'+subtype]"+>
24         {{Counts[type.code+'+'+subtype]}} {{subtype}}
25  </span>
26 </span>
27 </label>
28
29 </fieldset>
30
31 <fieldset ng-show="show.filters">
32 <legend>
33 Filters
34 </legend>
35
36 <label class="badge filter-{{search[filter]}}" ng-repeat="filter in filters">
37  <input ng-model="search[filter]" type="checkbox">
38  {{Counts[filter]}}
39  {{filter}}
40 </label>
41
42 </fieldset>
43
44 <fieldset>
45 <legend>
46 Search
47 </legend>
48
49 <input class="my-lebel-input search-query" ng-model="search.$" label="Search">
50
51 <a class="btn btn-invert" href="" ng-click="reset()">
52 <i class="icon-remove"></i></a>
53
54 <b>{{pager.results}} results</b>
55 <tt>{{search}}</tt>
56
57 </fieldset>
58
59 <fieldset ng-show="show.states">
60
61 <button ng-click="search.$ = 'draft'" class="btn draft">draft</button>
62 <button ng-click="search.$ = 'confirmation'" class="btn confirmation">confirmation</button>
63 <button ng-click="search.$ = 'verified'" class="btn verified">verified</button>
64
65 </fieldset>
66
67 <fieldset ng-show="show.pager_numeric">
68 <input type="number" ng-model="pager.page" size="3" min="1" max="{{pager.last_page}}">
69 <input type="number" ng-model="pager.limit">
70 </fieldset>
71
72
73 <div ng-show="list.length" class="content">
74
75 <pagination class="pagination-large" max-size="12"
76         num-pages="pager.last_page"
77         current-page="pager.page"
78 ></pagination>
79
80 <dl ng-repeat="registration in list">
81 %= include 'registration/view', before => begin
82 {{registration.nr}}
83 <a class="btn btn-primary" href="#/verified/{{registration.id}}" target="{{registration.id}}">change status</a>
84 % end
85 </dl>
86
87 <pagination class="pagination-large" max-size="12"
88         num-pages="pager.last_page"
89         current-page="pager.page"
90 ></pagination>
91
92 </div><!-- ng-show="list.length"-->
93
94 % if ( $lang =~ m/-dev/ ) {
95 <pre class="controls-row">
96 {{pager}}
97
98 {{Counts}}
99 </pre>
100 % }
101
102 </form>
103