Bug 22527: web installer links to outdated DB manual
[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                 <li><label for="note">Note for the librarian that will manage your renewal request: </label>
44                 <textarea name="note" id="note" rows="5" cols="50"></textarea></li></ol></fieldset>
45                 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
46 </form>
47 [% END %]
48
49 [% MACRO jsinclude BLOCK %]
50     [% INCLUDE 'calendar.inc' %]
51     <script type="text/javascript">
52         $(document).ready(function(){
53             $(".close").on("click", function(e){
54                 e.preventDefault();
55                 window.opener.location.reload(false);
56                 self.close();
57             });
58         });
59     </script>
60 [% END %]
61
62 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]