Bug 19918: Close span tag in opac-registration-confirmation.tt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / newordersuggestion.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Add order from a suggestion</title>
3 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
7 //<![CDATA[
8  $(document).ready(function() {
9     var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
10         "aoColumnDefs": [
11             { "aTargets": [ 0 ],  "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
12             { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
13         ],
14         "sPaginationType": "four_button"
15     } ) );
16     $("#show_only_mine").on('click', function(e){
17         e.preventDefault();
18         suggestionst.fnFilter('^[% loggedinuser %]$', 0, true);
19     });
20     $("#show_all").on('click', function(e){
21         e.preventDefault();
22         suggestionst.fnFilter('', 0 );
23     });
24  });
25  //]]>
26 </script>
27 </head>
28 <body id="acq_newordersuggestion" class="acq">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'suggestions-add-search.inc' %]
31
32 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; Add order from a suggestion</div>
33
34 <div id="doc3" class="yui-t2">
35    
36    <div id="bd">
37         <div id="yui-main">
38         <div class="yui-b">
39         
40 <h1>Suggestions</h1>
41     [% IF ( suggestions_loop ) %]
42     <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
43     <table id="suggestionst">
44         <thead>
45         <tr>
46             <th>Mine</th>
47             <th>Suggestion</th>
48             <th>Suggested by</th>
49             <th>Accepted by</th>
50             <th>&nbsp;</th>
51         </tr>
52         </thead>
53         <tbody>
54         [% FOREACH suggestions_loo IN suggestions_loop %]
55             <tr>
56                 <td>[% suggestions_loo.managedby %]</td>
57                 <td>
58                     <p>[% suggestions_loo.title |html %] - [% suggestions_loo.author %]</p>
59                     <p>
60                         [% IF ( suggestions_loo.copyrightdate ) %]&copy; [% suggestions_loo.copyrightdate %] [% END %]
61                         [% IF ( suggestions_loo.volumedesc ) %]volume: <i>[% suggestions_loo.volumedesc %]</i> [% END %]
62                         [% IF ( suggestions_loo.isbn ) %]ISBN: <i>[% suggestions_loo.isbn %]</i> [% END %]
63                         [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode %] [% END %]
64                         [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear %]</i> [% END %]
65                         [% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place %]</i> [% END %]
66                         [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note %])</i></p> [% END %]
67                     </p>
68                 </td>
69                 <td>
70                     [% suggestions_loo.surnamesuggestedby %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby %]
71                 </td>
72                 <td>
73                     [% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby %]
74                 </td>
75                 <td class="actions">
76                     [% IF ( suggestions_loo.biblionumber ) %]
77                         <a href="neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;suggestionid=[% suggestions_loo.suggestionid %]&amp;biblio=[% suggestions_loo.biblionumber %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
78                     [% ELSE %]
79                         <a href="neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;suggestionid=[% suggestions_loo.suggestionid %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
80                     [% END %]
81                 </td>
82             </tr>
83         [% END %]
84         </tbody>
85     </table>
86     [% ELSE %]
87         There are no outstanding (accepted) suggestions.
88     [% END %]
89 </div>
90 </div>
91 <div class="yui-b">
92 [% INCLUDE 'acquisitions-menu.inc' %]
93 </div>
94 </div>
95 [% INCLUDE 'intranet-bottom.inc' %]