Bug 7047: (QA follow-up) Add missing filters
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-renew.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 [% IF subscription %]
4 <title>Koha &rsaquo; Serials subscription renew #[% subscription.subscriptionid | html %]</title>
5 [% ELSE %]
6 <title>Koha &rsaquo; Serials subscription renew</title>
7 [% END %]
8 [% INCLUDE 'doc-head-close.inc' %]
9 </head>
10
11 <body id="ser_subscription-renew" class="ser">
12     <div class="container-fluid">
13
14 [% INCLUDE 'blocking_errors.inc' %]
15
16 [% IF op == 'renew' OR op =='multi_renew' %]
17     [% IF op == 'renew' %]
18         <span>Subscription renewed.<span>
19     [% ELSE %]
20         <span>Subscriptions renewed.<span>
21     [% END %]
22
23     <div id="closewindow">
24         <a class="btn btn-default btn-default close" href="#">Close</a>
25     </div>
26 [% ELSE %]
27
28 <form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
29                 <input type="hidden" name="op" value="renew" />
30                 <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]" />
31                 <fieldset class="rows"><legend>Subscription renewal for [% subscription.bibliotitle | html %]</legend>
32         <ol>
33             <li>
34                 <label for="startdate">Start date: </label>
35                 <input type="text" size="10" id="startdate" name="startdate" value="[% startdate | html %]" class="datepicker"/>
36                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
37             </li>
38                 <li><fieldset>
39                 <legend>Subscription length:</legend>
40                 <ol><li><label for="numberlength">Number of num:</label><input type="text" id="numberlength" name="numberlength" value="[% subscription.numberlength | html %]" /></li>
41                 <li><label for="weeklength">Number of weeks: </label><input type="text" id="weeklength" name="weeklength" value="[% subscription.weeklength | html %]" /></li>
42                 <li><label for="monthlength">Number of months: </label><input type="text" id="monthlength" name="monthlength" value="[% subscription.monthlength | html %]" /></li></ol></fieldset></li>
43
44 <li><label for="branchcode">Library:</label>
45  <select name="branchcode" id="branchcode" style="width: 20em;">
46      [% UNLESS ( Independentbranches ) %]
47         <option value="">None</option>
48      [% END %]
49      [% IF CAN_user_serials_superserials %]
50         [% FOREACH library IN libraries %]
51              <option value="[% library.branchcode | html %]"> [% library.branchname | html %] </option>
52         [% END %]
53      [% END %]
54 </select> (select a library)
55 </li>
56
57                 <li><label for="note">Note for the librarian that will manage your renewal request: </label>
58                 <textarea name="note" id="note" rows="5" cols="50"></textarea></li></ol></fieldset>
59                 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
60 </form>
61 [% END %]
62
63 [% MACRO jsinclude BLOCK %]
64     [% INCLUDE 'calendar.inc' %]
65     <script type="text/javascript">
66         $(document).ready(function(){
67             $(".close").on("click", function(e){
68                 e.preventDefault();
69                 window.opener.location.reload(false);
70                 self.close();
71             });
72         });
73     </script>
74 [% END %]
75
76 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]