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