Bug 9261: (follow-up) fix various issues identified during QA
[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         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                     <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>
47                 </div>
48
49                 <table id="suggestions">
50                     <thead>
51                         <tr>
52                           <th>Summary</th>
53                           <th>Note</th>
54                           <th>Managed by</th>
55                           <th>Status</th>
56                         </tr>
57                     </thead>
58
59                     <tbody>
60                         [% FOREACH s IN suggestions %]
61                             <tr>
62                                 <td>
63                                     <p>
64                                         <strong>
65                                             [% IF ( CAN_user_catalogue ) %]
66                                                 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid %]&op=show">[% s.title |html %]</a>
67                                             [% ELSE %]
68                                                 [% s.title |html %]
69                                             [% END %]
70                                         </strong>
71                                     </p>
72                                     <p>
73                                         [% IF ( s.author ) %][% s.author %],[% END %]
74                                         [% IF ( s.copyrightdate ) %] - [% s.copyrightdate %],[% END %]
75                                         [% IF ( s.publishercode ) %] - [% s.publishercode %][% END %]
76                                         [% IF ( s.place ) %]([% s.place %])[% END %]
77                                         [% IF ( s.collectiontitle ) %] , [% s.collectiontitle %][% END %]
78                                         [% IF ( s.itemtype ) %] - [% s.itemtype %][% END %]
79                                     </p>
80                                 </td>
81                                 <td>[% s.note %]
82                                 <td>
83                                     [% IF ( s.surnamemanagedby ) %]
84                                         [% s.surnamemanagedby %]
85                                         [% IF ( s.firstnamemanagedby ) %],[% END %]
86                                         [% s.firstnamemanagedby %]
87                                     [% ELSE %]
88                                         &nbsp;
89                                     [% END %]
90                                 </td>
91                                 <td>
92                                     [% IF ( s.ASKED ) %]Requested[% END %]
93                                     [% IF ( s.CHECKED ) %]Checked by the library[% END %]
94                                     [% IF ( s.ACCEPTED ) %]Accepted by the library[% END %]
95                                     [% IF ( s.ORDERED ) %]Ordered by the library[% END %]
96                                     [% IF ( s.REJECTED ) %]Suggestion declined [% END %]
97                                     [% IF ( s.AVAILABLE ) %]Available in the library[% END %]
98                                     [% IF ( s.reason ) %]([% s.reason %])[% END %]
99                                 </td>
100                             </tr>
101                         [% END %]
102                     </tbody>
103                 </table>
104             </div>
105         </div>
106     </div>
107 <div class="yui-b">
108 [% INCLUDE 'circ-menu.inc' %]
109 </div>
110 </div>
111 [% INCLUDE 'intranet-bottom.inc' %]