Bug 22990: Add CSRF protection to boraccount, pay and suggestion
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / routing-lists.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE AuthorisedValues %]
5 [% USE Branches %]
6 [% SET footerjs = 1 %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Subscription routing lists for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11
12 <body id="pat_routing_lists" class="pat">
13 [% WRAPPER 'header.inc' %]
14     [% INCLUDE 'patron-search-header.inc' %]
15 [% END %]
16
17 [% WRAPPER 'sub-header.inc' %]
18     [% WRAPPER breadcrumbs %]
19         [% WRAPPER breadcrumb_item %]
20             <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
21         [% END %]
22         [% WRAPPER breadcrumb_item %]
23             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
24         [% END %]
25         [% WRAPPER breadcrumb_item bc_active= 1 %]
26             <span>Subscription routing lists</span>
27         [% END %]
28     [% END #/ WRAPPER breadcrumbs %]
29 [% END #/ WRAPPER sub-header.inc %]
30
31 <div class="main container-fluid">
32     <div class="row">
33         <div class="col-sm-10 col-sm-push-2">
34             <main>
35
36                 [% INCLUDE 'members-toolbar.inc' %]
37
38                 <h1>Subscription routing lists for [% INCLUDE 'patron-title.inc' %]</h1>
39 <!-- Search Bar -->
40 <p class="tip">Search subscriptions:</p>
41 <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">[% IF ( routing ) %]<input type="hidden" name="routing" value="[% routing | html %]" />[% END %]<input type="hidden" name="searched" value="1" /> <label for="ISSN_filter">ISSN:</label> <input type="text" size="10" maxlength="11" name="ISSN_filter" id="ISSN_filter" value="[% ISSN_filter | html %]" /> <label for="title_filter">Title:</label> <input type="text" size="20" maxlength="40" name="title_filter" id="title_filter" value="[% title_filter | html %]" /><input type="submit" class="btn btn-primary" value="Search" />
42 </form>
43 <!-- Search Bar End -->
44
45 [% SET routinglists = patron.get_routing_lists %]
46 <h2>
47 [% UNLESS ( routinglists ) %]
48 <span>0 subscription routing lists</span>
49 [% ELSIF ( routinglists.count == 1 ) %]
50 <span>[% routinglists.count | html %] subscription routing list</span>
51 [% ELSE %]
52 <span>[% routinglists.count | html %] subscription routing lists</span>
53 [% END %]
54 </h2>
55
56 <div id="subscriptions" class="page-section">
57
58 [% IF ( routinglists ) %]
59     <table id="subscriptiont">
60         <thead>
61             <tr>
62                 <th>Subscription title</th>
63                 <th>Position</th>
64                 <th>Routing list</th>
65             </tr>
66         </thead>
67         <tbody>
68         [% FOREACH routinglist IN routinglists %]
69             <tr>
70                 <td>
71                     <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
72                         [% routinglist.subscription.biblio.title | html %]
73                     </a>
74                 </td>
75                 <td>
76                     [% routinglist.ranking | html %]
77                 </td>
78                 <td>
79                     <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
80                         Edit routing list
81                     </a>
82                     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
83                     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
84                 </td>
85             </tr>
86             [% END %]
87         </tbody>
88     </table>
89 [% ELSE %]
90     <p>Patron does not belong to any subscription routing lists.</p>
91     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
92     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
93 [% END %]
94
95 </div>
96
97             </main>
98         </div> <!-- /.col-sm-10.col-sm-push-2 -->
99
100         <div class="col-sm-2 col-sm-pull-10">
101             <aside>
102                 [% INCLUDE 'circ-menu.inc' %]
103             </aside>
104         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
105      </div> <!-- /.row -->
106
107 [% MACRO jsinclude BLOCK %]
108     [% INCLUDE 'str/members-menu.inc' %]
109     [% Asset.js("js/members-menu.js") | $raw %]
110 [% END %]
111
112 [% INCLUDE 'intranet-bottom.inc' %]