Bug 25364: Add "Other" to the gender options in a patron record
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / purchase-suggestions.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE KohaDates %]
5 [% USE AuthorisedValues  %]
6 [% USE Branches %]
7 [% SET footerjs = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha &rsaquo; Patrons &rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 </head>
12
13 <body id="pat_purchase_suggestions" class="pat">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'patron-search.inc' %]
16
17 <div id="breadcrumbs">
18          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
20 &rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
21 </div>
22
23 <div class="main container-fluid">
24     <div class="row">
25         <div class="col-sm-10 col-sm-push-2">
26             <main>
27
28                 [% INCLUDE 'members-toolbar.inc' %]
29                 <h1>Purchase suggestions</h1>
30
31                 <div id="toolbar" class="btn-toolbar">
32                     <a class="btn btn-default" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&amp;suggestedby=[% patron.borrowernumber | html %]&amp;redirect=purchase_suggestions&amp;borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-plus"></i> New purchase suggestion</a>
33                 </div>
34
35                 [% IF suggestions %]
36                   <table id="suggestions">
37                     <thead>
38                         <tr>
39                           <th>Summary</th>
40                           <th>Note</th>
41                           <th>Managed by</th>
42                           <th>Managed on</th>
43                           <th>Suggested on</th>
44                           <th>Status</th>
45                         </tr>
46                     </thead>
47
48                     <tbody>
49                         [% FOREACH s IN suggestions %]
50                             <tr>
51                                 <td>
52                                     <p>
53                                         <strong>
54                                             [% IF ( CAN_user_catalogue ) %]
55                                                 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid | uri %]&amp;op=show">[% s.title | html %]</a>
56                                             [% ELSE %]
57                                                 [% s.title | html %]
58                                             [% END %]
59                                         </strong>
60                                     </p>
61                                     <p>
62                                         [% IF ( s.author ) %][% s.author | html %],[% END %]
63                                         [% IF ( s.copyrightdate ) %] - [% s.copyrightdate | html %],[% END %]
64                                         [% IF ( s.publishercode ) %] - [% s.publishercode | html %][% END %]
65                                         [% IF ( s.place ) %]([% s.place | html %])[% END %]
66                                         [% IF ( s.collectiontitle ) %] , [% s.collectiontitle | html %][% END %]
67                                         [% IF ( s.itemtype ) %] - [% s.itemtype | html %][% END %]
68                                     </p>
69                                 </td>
70                                 <td>[% s.note | html %]
71                                 <td>
72                                     [% IF ( s.surnamemanagedby ) %]
73                                         [% s.surnamemanagedby | html %]
74                                         [% IF ( s.firstnamemanagedby ) %],[% END %]
75                                         [% s.firstnamemanagedby | html %]
76                                     [% ELSE %]
77                                         &nbsp;
78                                     [% END %]
79                                 </td>
80                                 <td data-order="[% s.manageddate | html %]">
81                                     [% s.manageddate | $KohaDates %]
82                                 </td>
83                                 <td data-order="[% s.suggesteddate | html %]">
84                                     [% s.suggesteddate | $KohaDates %]
85                                 </td>
86                                 <td>
87                                     [% SWITCH s.STATUS %]
88                                     [% CASE "ASKED" %]<span>Requested</span>
89                                     [% CASE "CHECKED" %]<span>Checked by the library</span>
90                                     [% CASE "ACCEPTED" %]<span>Accepted by the library</span>
91                                     [% CASE "ORDERED" %]<span>Ordered by the library</span>
92                                     [% CASE "REJECTED" %]<span>Suggestion declined<span>
93                                     [% CASE "AVAILABLE" %]<span>Available in the library</span>
94                                     [% CASE %]
95                                         [% SET status_description = AuthorisedValues.GetByCode('SUGGEST_STATUS', s.STATUS) %]
96                                         [% IF status_description %]
97                                             [% status_description | html %]
98                                         [% ELSE %]
99                                             <span>Unknown</span>
100                                         [% END %]
101                                     [% END %]
102                                     [% IF s.reason %]([% s.reason | html %])[% END %]
103                                 </td>
104                             </tr>
105                         [% END %]
106                     </tbody>
107                   </table>
108                 [% ELSE %]
109                     <div class="dialog message">
110                         <p>This patron has not submitted any purchase suggestions</p>
111                     </div>
112                 [% END %]
113
114             </main>
115         </div> <!-- /.col-sm-10.col-sm-push-2 -->
116
117         <div class="col-sm-2 col-sm-pull-10">
118             <aside>
119                 [% INCLUDE 'circ-menu.inc' %]
120             </aside>
121         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
122      </div> <!-- /.row -->
123
124 [% MACRO jsinclude BLOCK %]
125     [% INCLUDE 'str/members-menu.inc' %]
126     [% Asset.js("js/members-menu.js") | $raw %]
127     [% INCLUDE 'datatables.inc' %]
128     <script>
129         $(document).ready(function() {
130             $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
131                 'bPaginate': false,
132                 'bFilter': false,
133                 'bInfo': false,
134                 'sDom': 't'
135             } ));
136         });
137     </script>
138 [% END %]
139
140 [% INCLUDE 'intranet-bottom.inc' %]