Bug 17047: subscriptions management with Mana-KB
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / mana-subscription-search-result.inc
1 [% USE KohaDates %]
2 <table id="mana_results_datatable">
3     <thead>
4         <tr>
5             <th>ISSN</th>
6             <th class="anti-the">Title</th>
7             <th>Frequency</th>
8             <th>Numbering pattern</th>
9             <th class="NoSort">Number of users</th>
10             <th class="title-string">Last Import</th>
11             [% UNLESS search_only %]
12               <th class="NoSort">Actions</th>
13             [% END %]
14         </tr>
15     </thead>
16     <tfoot>
17         <tr>
18             <td><input type="text" class="dt-filter" data-column_num="0" placeholder="Search ISSN" /></td>
19             <td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search title" /></td>
20             <td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search frequency" /></td>
21             <td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search numbering pattern" /></td>
22             <td></td>
23             <td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search last import" /></td>
24             [% UNLESS search_only %]
25               <td></td>
26             [% END %]
27         </tr>
28     </tfoot>
29     <tbody>
30         [% FOREACH subscription IN subscriptions %]
31             [% UNLESS subscription.cannotdisplay %]
32                 <tr id="row[% subscription.subscriptionid %]">
33                     <td>[% IF ( subscription.issn ) %][% subscription.issn %][% END %]</td>
34                     <td>[% subscription.title %]</a></td>
35                     <td>[% IF ( subscription.sfdescription ) %][% subscription.sfdescription %][% END %]</td>
36                     <td>[% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod %][% END %]</td>
37                     <td>[% IF ( subscription.nbofusers ) %][% subscription.nbofusers %][% END %]</td>
38                     <td><span title="[% subscription.lastimport %]">[% subscription.lastimport | $KohaDates %]</span></td>
39                     [% UNLESS search_only %]
40                       <td><a style="cursor:pointer" onclick="mana_use([% subscription.id %])"> <i class="fa fa-inbox"></i> Use</a></td>
41                     [% END %]
42                 </tr>
43             [% END %]
44         [% END %]
45     </tbody>
46 </table>