checkbox to hide stuff for printed version
[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">
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="filter in filters" ng-show="Counts[type.code+'+'+filter.name]"+>
24         {{Counts[type.code+'+'+filter.name]}} {{filter.label}}
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.name]}}" ng-repeat="filter in filters" >
37  <input ng-model="search[filter.name]" type="checkbox">
38  {{Counts[filter.name]}}
39  {{filter.label}}
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 <label>
58 <input type="checkbox" ng-model="pager.show_all">
59 All results on single page <b>(can be slow!)</b>
60 </label>
61
62 <label>
63 <input type="checkbox" ng-model="print_hide_status" ng-click="print_hide(print_hide_status)" >
64 Hide parts for print
65 </label>
66
67 </fieldset>
68
69 <fieldset ng-show="show.states">
70 <button ng-repeat="state in ValidStates" ng-click="search.$ = state" class="btn {{state}}">
71 <span class="badge">{{Counts['state+'+state]}}</span>
72 {{state}}
73 </button>
74 </fieldset>
75
76 <fieldset ng-show="show.pager_numeric">
77 <input type="number" ng-model="pager.page" size="3" min="1" max="{{pager.last_page}}">
78 <input type="number" ng-model="pager.limit">
79 </fieldset>
80
81
82 <div ng-show="list.length" class="content">
83
84 <pagination class="pagination-large" max-size="12"
85         num-pages="pager.last_page"
86         current-page="pager.page"
87         hide-pagination="pager.show_all"
88 ></pagination>
89
90 <dl ng-repeat="registration in list">
91 %= include 'registration/view', before => begin
92 {{registration.nr}}
93 <a class="btn btn-primary" href="#/verified/{{registration.id}}">change status</a>
94 % end
95 </dl>
96
97 <pagination class="pagination-large" max-size="12"
98         num-pages="pager.last_page"
99         current-page="pager.page"
100         hide-pagination="pager.show_all"
101 ></pagination>
102
103 </div><!-- ng-show="list.length"-->
104
105 % if ( $lang =~ m/-dev/ ) {
106 <pre class="controls-row">
107 {{pager}}
108
109 {{Counts}}
110 </pre>
111 % }
112
113 </form>
114