Bug 30952: Staff interface redesign (header)
[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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19     <ol>
20         <li>
21             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
22         </li>
23         <li>
24             <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25         </li>
26         <li>
27             <a href="#" aria-current="page">
28                 Subscription routing lists for [% INCLUDE 'patron-title.inc' %]
29             </a>
30         </li>
31     </ol>
32 </nav>
33 [% END %]
34
35 <div class="main container-fluid">
36     <div class="row">
37         <div class="col-sm-10 col-sm-push-2">
38             <main>
39
40                 [% INCLUDE 'members-toolbar.inc' %]
41
42                 <h1>Subscription routing lists for [% INCLUDE 'patron-title.inc' %]</h1>
43 <!-- Search Bar -->
44 <p class="tip">Search subscriptions:</p>
45 <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" />
46 </form>
47 <!-- Search Bar End -->
48
49 [% SET routinglists = patron.get_routing_lists %]
50 <h2>
51 [% UNLESS ( routinglists ) %]
52 <span>0 subscription routing lists</span>
53 [% ELSIF ( routinglists.count == 1 ) %]
54 <span>[% routinglists.count | html %] subscription routing list</span>
55 [% ELSE %]
56 <span>[% routinglists.count | html %] subscription routing lists</span>
57 [% END %]
58 </h2>
59
60 <div id="subscriptions">
61
62 [% IF ( routinglists ) %]
63     <table id="subscriptiont">
64         <thead>
65             <tr>
66                 <th>Subscription title</th>
67                 <th>Position</th>
68                 <th>Routing list</th>
69             </tr>
70         </thead>
71         <tbody>
72         [% FOREACH routinglist IN routinglists %]
73             <tr>
74                 <td>
75                     <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
76                         [% routinglist.subscription.biblio.title | html %]
77                     </a>
78                 </td>
79                 <td>
80                     [% routinglist.ranking | html %]
81                 </td>
82                 <td>
83                     <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% routinglist.subscription.subscriptionid | uri %]">
84                         Edit routing list
85                     </a>
86                     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
87                     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
88                 </td>
89             </tr>
90             [% END %]
91         </tbody>
92     </table>
93 [% ELSE %]
94     <p>Patron does not belong to any subscription routing lists.</p>
95     <input type="hidden" name="biblionumber" value="[% routinglist.subscription.biblionumber | html %]" />
96     <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
97 [% END %]
98
99 </div>
100
101             </main>
102         </div> <!-- /.col-sm-10.col-sm-push-2 -->
103
104         <div class="col-sm-2 col-sm-pull-10">
105             <aside>
106                 [% INCLUDE 'circ-menu.inc' %]
107             </aside>
108         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
109      </div> <!-- /.row -->
110
111 [% MACRO jsinclude BLOCK %]
112     [% INCLUDE 'str/members-menu.inc' %]
113     [% Asset.js("js/members-menu.js") | $raw %]
114 [% END %]
115
116 [% INCLUDE 'intranet-bottom.inc' %]