LP1950345-Format the Current Hold Groups table in bootstrap opac
[evergreen-equinox.git] / Open-ILS / src / templates-bootstrap / opac / myopac / hold_subscriptions.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     PROCESS "opac/parts/misc_util.tt2";
3     PROCESS "opac/parts/hold_status.tt2";
4     PROCESS "opac/parts/myopac/column_sort_support.tt2";
5     WRAPPER "opac/parts/myopac/base.tt2";
6     myopac_page = "holds";
7     parent="holds";
8 %]
9 <div id='myopac_holds_div'>
10
11     <h3>[% l("Current Hold Groups") %]</h3>
12     <div class="header_middle">
13         <span style="float:right;">
14             <a class="hide_me" href="#">[% l('Export List') %]</a>
15         </span>
16     </div>
17     <div class="clear-both"></div>
18
19     <div id='holds_main'>
20         [% IF ctx.my_hold_subscriptions.size AND ctx.my_hold_subscriptions.size < 1 %]
21         <div class="warning_box">
22             <big><strong>[% l('No subscriptions found.') %]</strong></big>
23         </div>
24         [% ELSE %]
25         <table id='acct_holds_groups_header' class='table table-hover table-bordered miniTable holdgroupsTable' title="[% l('Hold Groups') %]">
26             <thead>
27                 <tr>
28                     <th><span>[% l('Group Name') %]</span></th>
29                     <th><span>[% l('Description') %]</span></th>
30                     <th><span>[% l('Actions') %]</span></th>
31                 </tr>
32             </thead>
33             <tbody id='holds_temp_parent'>
34                 [% FOR sub IN ctx.my_hold_subscriptions %]
35                 <tr name="acct_holds_temp" class="acct_holds_temp">
36
37                     <td> [% sub.name | html %] </td>
38                     <td> [% sub.description | html %] </td>
39                     <td>
40                         <a href='[% mkurl('hold_subscriptions', {remove => sub.id}) %]'>
41                             [% l('Remove me') %]
42                         </a>
43                     </td>
44                 </tr>
45                 [% END %]
46             </tbody>
47         </table>
48         [% END %]
49     </div>
50 </div>
51 [% END %]