Bug 34791: Add links to HTML Customizations to CookieConsent preferences
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / borrowers_out.tt
1 [% USE raw %]
2 [% PROCESS 'i18n.inc' %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% FILTER collapse %]
6     [% t("Patrons with no checkouts") | html %] &rsaquo;
7     [% t("Reports") | html %] &rsaquo;
8     [% t("Koha") | html %]
9 [% END %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 </head>
12
13 <body id="rep_borrowers_out" class="rep">
14 [% WRAPPER 'header.inc' %]
15     [% INCLUDE 'cat-search.inc' %]
16 [% END %]
17
18 [% WRAPPER 'sub-header.inc' %]
19     [% WRAPPER breadcrumbs %]
20         [% WRAPPER breadcrumb_item %]
21             <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
22         [% END %]
23         [% IF ( do_it ) %]
24             [% WRAPPER breadcrumb_item %]
25                 <a href="/cgi-bin/koha/reports/borrowers_out.pl">Patrons with no checkouts</a>
26             [% END %]
27             [% WRAPPER breadcrumb_item bc_active= 1 %]
28                 <span>Results</span>
29             [% END %]
30         [% ELSE %]
31             [% WRAPPER breadcrumb_item bc_active= 1 %]
32                 <span>Patrons with no checkouts</span>
33             [% END %]
34         [% END %]
35     [% END #/ WRAPPER breadcrumbs %]
36 [% END #/ WRAPPER sub-header.inc %]
37
38 <div class="main container-fluid">
39     <div class="row">
40         <div class="col-sm-10 col-sm-push-2">
41             <main>
42
43 [% IF ( do_it ) %]
44     [% FOREACH mainloo IN mainloop %]
45         <h1>Patrons with no checkouts</h1>
46         [% IF ( mainloo.loopfilter ) %]
47             <p>Filtered on:</p>
48             [% FOREACH loopfilte IN mainloo.loopfilter %]
49                     <p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %]  [% END %]</p>
50             [% END %]
51         [% END %]
52         
53         <table>
54             <tr>
55                 <th>Num/Patrons</th>
56                 [% FOREACH loopco IN mainloo.loopcol %]
57                     <th>[% loopco.coltitle | html %]</th>
58                 [% END %]
59             </tr>
60                 [% FOREACH loopro IN mainloo.looprow %]
61             <tr>
62                         <td>[% loopro.rowtitle | html %]</td>
63                         [% FOREACH loopcel IN loopro.loopcell %]
64                         <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% END %]
65                             </td>
66                         [% END %]
67                     </tr>
68                 [% END %]
69         </table>
70     [% END %]
71 [% ELSE %]
72     <h1>Patrons with no checkouts</h1>
73     <form method="post" action="/cgi-bin/koha/reports/borrowers_out.pl">
74     <fieldset class="rows">
75                 <ol>
76             <li><label for="patroncategory">Patron category: </label> <select name="Filter" id="patroncategory"><option value="" > Any category code</option>
77     [% FOREACH patron_category IN patron_categories %]
78         <option value="[% patron_category.categorycode | html %]" >[% patron_category.description | html %] </option>
79     [% END %]
80     </select>
81 </li>
82     <li><label for="to">Not checked out since: </label> <input size="10" id="to" class="flatpickr" data-flatpickr-pastdate="true" name="Filter" value="" type="text" />
83 </li>
84                 </ol>
85         </fieldset>
86         
87     <fieldset class="rows">
88         <legend>Limits</legend>
89                 <ol>
90                         <li><label for="numberlimit">Limit to: </label><select name="Limit" id="numberlimit">
91                         <option value ="" selected="selected">None</option>
92                         <option value ="5"> 5</option>
93                         <option value ="10">10</option>
94                         <option value ="15">15</option>
95                         <option value ="20">20</option>
96                         <option value ="25">25</option>
97                         <option value ="40">40</option>
98                         <option value ="50">50</option>
99                         <option value ="100">100</option>
100                     </select></li>
101                         <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
102                         <option value ="" selected="selected">None</option>
103                         <option value ="categorycode">Patron category</option>
104                         <option value ="branchcode">Library</option>
105                     </select></li>
106                 </ol>
107         </fieldset>
108         
109 <fieldset class="rows">
110         <legend>Output</legend>
111     <ol>
112         <li>
113             <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
114         </li>
115         <li>
116             <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
117             <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
118             <label class="inline" for="MIME">Into an application:</label>
119             <select name="MIME" id="MIME">
120             [% FOREACH value IN CGIextChoice %]
121                 <option value="[% value | html %]">[% value | html %]</option>
122             [% END %]
123             </select>
124             <select name="sep" id="sep">
125             [% FOREACH value IN CGIsepChoice.values.sort() %]
126               [% IF ( value == CGIsepChoice.default ) %]
127                 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
128               [% ELSE %]
129                 <option value="[% value | html %]">[% value | html %]</option>
130               [% END %]
131             [% END %]
132             </select>
133         </li>
134     </ol>
135         </fieldset>
136
137         <fieldset class="action">
138     <input type="submit" class="btn btn-primary" value="Submit" />
139         <input type="hidden" name="report_name" value="[% report_name | html %]" />
140         <input type="hidden" name="do_it" value="1" />
141         </fieldset>
142         </form>
143 [% END %]
144
145             </main>
146         </div> <!-- /.col-sm-10.col-sm-push-2 -->
147
148         <div class="col-sm-2 col-sm-pull-10">
149             <aside>
150                 [% INCLUDE 'reports-menu.inc' %]
151             </aside>
152         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
153      </div> <!-- /.row -->
154
155 [% MACRO jsinclude BLOCK %]
156     [% INCLUDE 'calendar.inc' %]
157 [% END %]
158
159 [% INCLUDE 'intranet-bottom.inc' %]