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