Bug 9261: (follow-up) fix various issues identified during QA
[srvgit] / 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         new YAHOO.widget.Button("newsuggestion");
23     });
24 </script>
25 </head>
26
27 <body>
28 [% INCLUDE 'header.inc' %]
29 [% INCLUDE 'patron-search.inc' %]
30
31 <div id="breadcrumbs">
32          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
33 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
34 &rsaquo; [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Purchase suggestions for [% firstname %] [% surname %] ([% cardnumber %])[% END %]
35 </div>
36
37 <div id="doc3" class="yui-t1">
38
39    <div id="bd">
40     <div id="yui-main">
41         <div class="yui-b">
42             <div class="yui-g">
43                 <h2>Purchase suggestions</h2>
44
45                 <div id="toolbar">
46                     <ul class="toolbar">
47                         <li><a id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% borrowernumber %]">New purchase suggestion</a></li>
48                     </ul>
49                 </div>
50
51                 <table id="suggestions">
52                     <thead>
53                         <tr>
54                           <th>Summary</th>
55                           <th>Note</th>
56                           <th>Managed by</th>
57                           <th>Status</th>
58                         </tr>
59                     </thead>
60
61                     <tbody>
62                         [% FOREACH s IN suggestions %]
63                             <tr>
64                                 <td>
65                                     <p><strong>[% s.title |html %]</strong></p>
66                                     <p>
67                                         [% IF ( s.author ) %][% s.author %],[% END %]
68                                         [% IF ( s.copyrightdate ) %] - [% s.copyrightdate %],[% END %]
69                                         [% IF ( s.publishercode ) %] - [% s.publishercode %][% END %]
70                                         [% IF ( s.place ) %]([% s.place %])[% END %]
71                                         [% IF ( s.collectiontitle ) %] , [% s.collectiontitle %][% END %]
72                                         [% IF ( s.itemtype ) %] - [% s.itemtype %][% END %]
73                                     </p>
74                                 </td>
75                                 <td>[% s.note %]
76                                 <td>
77                                     [% IF ( s.surnamemanagedby ) %]
78                                         [% s.surnamemanagedby %]
79                                         [% IF ( s.firstnamemanagedby ) %],[% END %]
80                                         [% s.firstnamemanagedby %]
81                                     [% ELSE %]
82                                         &nbsp;
83                                     [% END %]
84                                 </td>
85                                 <td>
86                                     [% IF ( s.ASKED ) %]Requested[% END %]
87                                     [% IF ( s.CHECKED ) %]Checked by the library[% END %]
88                                     [% IF ( s.ACCEPTED ) %]Accepted by the library[% END %]
89                                     [% IF ( s.ORDERED ) %]Ordered by the library[% END %]
90                                     [% IF ( s.REJECTED ) %]Suggestion declined [% END %]
91                                     [% IF ( s.AVAILABLE ) %]Available in the library[% END %]
92                                     [% IF ( s.reason ) %]([% s.reason %])[% END %]
93                                 </td>
94                             </tr>
95                         [% END %]
96                     </tbody>
97                 </table>
98             </div>
99         </div>
100     </div>
101 <div class="yui-b">
102 [% INCLUDE 'circ-menu.inc' %]
103 </div>
104 </div>
105 [% INCLUDE 'intranet-bottom.inc' %]