Bug 32091: Consistent classes for primary buttons: Reports
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / serials_stats.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% USE Branches %]
5 [% SET footerjs = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Serials subscriptions stats &rsaquo; Reports &rsaquo; Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 <style>
10         .sql {display: none;}
11 </style>
12 </head>
13
14 <body id="rep_serials_stats" class="rep">
15 [% WRAPPER 'header.inc' %]
16     [% INCLUDE 'cat-search.inc' %]
17 [% END %]
18
19 [% WRAPPER 'sub-header.inc' %]
20 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21     <ol>
22         <li>
23             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24         </li>
25         <li>
26             <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
27         </li>
28         <li>
29             <a href="#" aria-current="page">
30                 Serials subscriptions stats
31             </a>
32         </li>
33     </ol>
34 </nav>
35 [% END %]
36
37 <div class="main container-fluid">
38     <div class="row">
39         <div class="col-sm-10 col-sm-push-2">
40             <main>
41
42         <h1>Serials subscriptions</h1>
43 [% IF ( do_it ) %]
44         <table id="resulttable">
45                 <thead>
46                         <tr>
47                                 <th>Vendor</th>
48                 <th class="anti-the">Title</th>
49                 <th>Subscription ID</th>
50                 <th>Library</th>
51                 <th>Call number</th>
52                 <th>Subscription begin</th>
53                 <th>Subscription end</th>
54                 <th>Expired? / Closed?</th>
55                         </tr>
56                 </thead>
57                 <tbody>
58                                 [% FOREACH data IN datas %]
59                 <tr>
60                     <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% data.aqbooksellerid | uri %]">[% data.name | html %]</a></td>
61                     <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% data.subscriptionid | uri %]">[% data.title | html %]</a></td>
62                                         <td>[% data.subscriptionid | html %]</td>
63                     <td>[% Branches.GetName( data.branchcode ) | html %]</td>
64                                         <td>[% data.callnumber | html %]</td>
65                     <td data-order="[% data.startdate | html %]">[% data.startdate | $KohaDates %]</td>
66                     <td data-order="[% data.enddate | html %]">[% data.enddate | $KohaDates %]</td>
67                     <td>
68                         [% IF data.closed %]
69                             <span>Closed</span>
70                         [% ELSIF data.expired %]
71                             <span>Expired</span>
72                         [% END %]
73                     </td>
74                 </tr>
75                                 [% END %]
76                         </tr>
77                 </tbody>
78         </table>
79
80 [% ELSE %]
81         <form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
82
83         <fieldset class="rows">
84                 <ol>
85                         <li>
86
87                                 <label for="bookseller">
88                                         Vendor:
89                             </label>
90                                 <select name="bookseller" id="bookseller">
91                     <option value="">Any vendor</option>
92                                 [% FOREACH bookseller IN booksellers %]
93                                                 <option value="[% bookseller.aqbooksellerid | html %]">[% bookseller.name | html %]</option>
94                                         [% END %]
95                             </select>
96                         </li><li>
97                 <label for="branchcode">
98                                         Library:
99                         </label>
100                         <select name="branchcode"  id="branchcode">
101                                 <option value="">Any library</option>
102                 [% PROCESS options_for_libraries libraries => Branches.all() %]
103                         </select>
104
105                     </li>
106                     <li>
107                         <label for="expired">Include expired subscriptions: </label>
108                 <input type="checkbox" name="expired" id="expired" />
109                     </li>
110                 </ol>
111         </fieldset>
112
113
114         <fieldset class="rows">
115         <legend>Output</legend>
116     <ol>
117         <li>
118             <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
119         </li>
120         <li>
121             <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
122             <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
123             <label class="inline" for="MIME">Into an application:</label>
124             <select name="MIME" id="MIME">
125             [% FOREACH value IN CGIextChoice %]
126                 <option value="[% value | html %]">[% value | html %]</option>
127             [% END %]
128             </select>
129             <select name="sep" id="sep">
130             [% FOREACH value IN CGIsepChoice.values.sort() %]
131               [% IF ( value == CGIsepChoice.default ) %]
132                 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
133               [% ELSE %]
134                 <option value="[% value | html %]">[% value | html %]</option>
135               [% END %]
136             [% END %]
137             </select>
138         </li>
139     </ol>
140         </fieldset>
141
142         <fieldset class="action">
143     <input type="submit" class="btn btn-primary" value="Submit" />
144         <input type="hidden" name="report_name" value="[% report_name | html %]" />
145         <input type="hidden" name="do_it" value="1" />
146         </fieldset>
147         </form>
148 [% END %]
149
150             </main>
151         </div> <!-- /.col-sm-10.col-sm-push-2 -->
152
153         <div class="col-sm-2 col-sm-pull-10">
154             <aside>
155                 [% INCLUDE 'reports-menu.inc' %]
156             </aside>
157         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
158      </div> <!-- /.row -->
159
160 [% MACRO jsinclude BLOCK %]
161 [% INCLUDE 'datatables.inc' %]
162     <script>
163         $(document).ready(function() {
164             $("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, {
165                 "bPaginate": false,
166             }));
167         });
168     </script>
169 [% END %]
170
171 [% INCLUDE 'intranet-bottom.inc' %]