Bug 30952: Fix style of some buttons
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / statistics.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE AuthorisedValues %]
5 [% USE Branches %]
6 [% SET footerjs = 1 %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>
9     [% UNLESS blocking_error %]
10         Statistics for [% INCLUDE 'patron-title.inc' no_html = 1 %]
11     [% END %] &rsaquo; Patrons &rsaquo; Koha
12 </title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 </head>
15
16 <body id="pat_statistics" class="pat">
17 [% WRAPPER 'header.inc' %]
18     [% INCLUDE 'patron-search-header.inc' %]
19 [% END %]
20
21 [% WRAPPER 'sub-header.inc' %]
22 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
23     <ol>
24         <li>
25             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
26         </li>
27
28         [% IF blocking_error %]
29             <li>
30                 <a href="#" aria-current="page">
31                     Patrons
32                 </a>
33             </li>
34
35         [% ELSE %]
36             <li>
37                 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
38             </li>
39             <li>
40                 <a href="#" aria-current="page">
41                     Statistics for [% INCLUDE 'patron-title.inc' invert_name = 1 %]
42
43                 </a>
44             </li>
45         [% END %]
46     </ol>
47 </nav>
48 [% END %]
49
50 <div class="main container-fluid">
51     <div class="row">
52         <div class="col-sm-10 col-sm-push-2">
53             <main>
54
55         [% INCLUDE 'members-toolbar.inc' %]
56
57             <h1>Statistics for [% INCLUDE 'patron-title.inc' %]</h1>
58             [% IF ( datas.size ) %]
59                 <table id="statistics">
60                 <thead>
61                     <tr>
62                       [% FOREACH cn IN column_names %]
63                           <th>
64                             [% SWITCH cn %]
65                             [% CASE 'itype' %]
66                                 <span>Item type</span>
67                             [% CASE 'ccode' %]
68                                 <span>Collection</span>
69                             [% CASE 'location' %]
70                                 <span>Shelving location</span>
71                             [% CASE 'homebranch' %]
72                                 <span>Home library</span>
73                             [% CASE 'holdingbranch' %]
74                                 <span>Holding library</span>
75                             [% CASE %]
76                                 <span>[% cn | html %]</span>
77                             [% END %]
78                           </th>
79                       [% END %]
80                       <th>Total checkouts as of yesterday</th>
81                       <th>Today's checkouts</th>
82                       <th>Today's checkins</th>
83                       <th>Total checkouts</th>
84                     </tr>
85                 </thead>
86
87                 <tbody>
88                     [% FOREACH r IN datas %]
89                         <tr>
90                             [% FOREACH c IN r %]
91                                 <td>[% c | html %]</td>
92                             [% END %]
93                         </tr>
94                     [% END %]
95                 </tbody>
96                 <tfoot>
97                     <tr>
98                         <td colspan="[% column_names.size | html %]">TOTAL</td>
99                         <td>[% count_total_precedent_state | html %]</td>
100                         <td>[% count_total_issues | html %]</td>
101                         <td>[% count_total_issues_returned | html %]</td>
102                         <td>[% count_total_actual_state | html %]</td>
103                     </tr>
104                 </tfoot>
105                 </table>
106             [% ELSE %]
107                 <div class="dialog message">There are no statistics for this patron.</div>
108             [% END %]
109
110             </main>
111         </div> <!-- /.col-sm-10.col-sm-push-2 -->
112
113         <div class="col-sm-2 col-sm-pull-10">
114             <aside>
115                 [% INCLUDE 'circ-menu.inc' %]
116             </aside>
117         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
118      </div> <!-- /.row -->
119
120 [% MACRO jsinclude BLOCK %]
121     [% INCLUDE 'str/members-menu.inc' %]
122     [% Asset.js("js/members-menu.js") | $raw %]
123     [% INCLUDE 'datatables.inc' %]
124     <script>
125         $(document).ready(function() {
126             $("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
127                 "sDom": 't',
128                 "bPaginate": false
129             }));
130         });
131     </script>
132 [% END %]
133
134 [% INCLUDE 'intranet-bottom.inc' %]