Bug 25834: Relabel "Search to add" to "Add guarantor" on patron form.
[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 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'patron-search.inc' %]
15
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Subscription routing lists for [% INCLUDE 'patron-title.inc' %]</div>
17
18 <div class="main container-fluid">
19     <div class="row">
20         <div class="col-sm-10 col-sm-push-2">
21             <main>
22
23 [% INCLUDE 'members-toolbar.inc' %]
24
25 <!-- Search Bar -->
26 <p class="tip">Search subscriptions:</p>
27 <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" value="Search" class="submit" />
28 </form>
29 <!-- Search Bar End -->
30
31 [% SET routinglists = patron.get_routing_lists %]
32 <h1>
33 [% UNLESS ( routinglists ) %]
34 0 subscription routing lists
35 [% ELSIF ( routinglists.count == 1 ) %]
36 [% routinglists.count | html %] subscription routing list
37 [% ELSE %]
38 [% routinglists.count | html %] subscription routing lists
39 [% END %]
40 </h1>
41
42 <div id="subscriptions">
43
44 [% IF ( routinglists ) %]
45     <table id="subscriptiont">
46         <thead>
47             <tr>
48                 <th>Subscription title</th>
49                 <th>Position</th>
50                 <th>Routing list</th>
51             </tr>
52         </thead>
53         <tbody>
54         [% FOREACH routinglist IN routinglists %]
55             <tr>
56                 <td>
57                     <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
58                         [% routinglist.subscription.biblio.title | html %]
59                     </a>
60                 </td>
61                 <td>
62                     [% routinglist.ranking | html %]
63                 </td>
64                 <td>
65                     <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
66                         Edit routing list
67                     </a>
68                     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
69                     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
70                 </td>
71             </tr>
72             [% END %]
73         </tbody>
74     </table>
75 [% ELSE %]
76     <p>Patron does not belong to any subscription routing lists.</p>
77     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
78     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
79 [% END %]
80
81 </div>
82
83             </main>
84         </div> <!-- /.col-sm-10.col-sm-push-2 -->
85
86         <div class="col-sm-2 col-sm-pull-10">
87             <aside>
88                 [% INCLUDE 'circ-menu.inc' %]
89             </aside>
90         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
91      </div> <!-- /.row -->
92
93 [% MACRO jsinclude BLOCK %]
94     [% INCLUDE 'str/members-menu.inc' %]
95     [% Asset.js("js/members-menu.js") | $raw %]
96 [% END %]
97
98 [% INCLUDE 'intranet-bottom.inc' %]