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