Bug 9261: (follow-up) remove references to deprecated YUI widget
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / purchase-suggestions.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Patrons &rsaquo;
3 [% IF ( unknowuser ) %]
4     Patron does not exist
5 [% ELSE %]
6     Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
7 [% END %]
8 </title>
9 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
10 [% INCLUDE 'doc-head-close.inc' %]
11 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
12 [% INCLUDE 'datatables-strings.inc' %]
13 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
14 <script type="text/javascript">
15     $(document).ready(function() {
16         $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
17             'bPaginate': false,
18             'bFilter': false,
19             'bInfo': false,
20         } ));
21     });
22 </script>
23 </head>
24
25 <body>
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'patron-search.inc' %]
28
29 <div id="breadcrumbs">
30          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
31 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
32 &rsaquo; [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Purchase suggestions for [% firstname %] [% surname %] ([% cardnumber %])[% END %]
33 </div>
34
35 <div id="doc3" class="yui-t1">
36
37    <div id="bd">
38     <div id="yui-main">
39         <div class="yui-b">
40             <div class="yui-g">
41                 <h2>Purchase suggestions</h2>
42
43                 <div id="toolbar">
44                     <a class="btn" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% borrowernumber %]"><i class="icon-plus"></i> New purchase suggestion</a>
45                 </div>
46
47                 <table id="suggestions">
48                     <thead>
49                         <tr>
50                           <th>Summary</th>
51                           <th>Note</th>
52                           <th>Managed by</th>
53                           <th>Status</th>
54                         </tr>
55                     </thead>
56
57                     <tbody>
58                         [% FOREACH s IN suggestions %]
59                             <tr>
60                                 <td>
61                                     <p>
62                                         <strong>
63                                             [% IF ( CAN_user_catalogue ) %]
64                                                 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid %]&op=show">[% s.title |html %]</a>
65                                             [% ELSE %]
66                                                 [% s.title |html %]
67                                             [% END %]
68                                         </strong>
69                                     </p>
70                                     <p>
71                                         [% IF ( s.author ) %][% s.author %],[% END %]
72                                         [% IF ( s.copyrightdate ) %] - [% s.copyrightdate %],[% END %]
73                                         [% IF ( s.publishercode ) %] - [% s.publishercode %][% END %]
74                                         [% IF ( s.place ) %]([% s.place %])[% END %]
75                                         [% IF ( s.collectiontitle ) %] , [% s.collectiontitle %][% END %]
76                                         [% IF ( s.itemtype ) %] - [% s.itemtype %][% END %]
77                                     </p>
78                                 </td>
79                                 <td>[% s.note %]
80                                 <td>
81                                     [% IF ( s.surnamemanagedby ) %]
82                                         [% s.surnamemanagedby %]
83                                         [% IF ( s.firstnamemanagedby ) %],[% END %]
84                                         [% s.firstnamemanagedby %]
85                                     [% ELSE %]
86                                         &nbsp;
87                                     [% END %]
88                                 </td>
89                                 <td>
90                                     [% IF ( s.ASKED ) %]Requested[% END %]
91                                     [% IF ( s.CHECKED ) %]Checked by the library[% END %]
92                                     [% IF ( s.ACCEPTED ) %]Accepted by the library[% END %]
93                                     [% IF ( s.ORDERED ) %]Ordered by the library[% END %]
94                                     [% IF ( s.REJECTED ) %]Suggestion declined [% END %]
95                                     [% IF ( s.AVAILABLE ) %]Available in the library[% END %]
96                                     [% IF ( s.reason ) %]([% s.reason %])[% END %]
97                                 </td>
98                             </tr>
99                         [% END %]
100                     </tbody>
101                 </table>
102             </div>
103         </div>
104     </div>
105 <div class="yui-b">
106 [% INCLUDE 'circ-menu.inc' %]
107 </div>
108 </div>
109 [% INCLUDE 'intranet-bottom.inc' %]