Bug 13618: Add html filters to all the variables
[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 [% IF op == 'renew' OR op =='multi_renew' %]
15     [% IF op == 'renew' %]
16         <span>Subscription renewed.<span>
17     [% ELSE %]
18         <span>Subscriptions renewed.<span>
19     [% END %]
20
21     <div id="closewindow">
22         <a class="btn btn-default btn-default close" href="#">Close</a>
23     </div>
24 [% ELSE %]
25       <div id="bd">
26 <form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
27                 <input type="hidden" name="op" value="renew" />
28                 <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]" />
29                 <fieldset class="rows"><legend>Subscription renewal for [% subscription.bibliotitle | html %]</legend>
30         <ol>
31             <li>
32                 <label for="startdate">Start date: </label>
33                 <input type="text" size="10" id="startdate" name="startdate" value="[% startdate | html %]" class="datepicker"/>
34                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
35             </li>
36                 <li><fieldset>
37                 <legend>Subscription length:</legend>
38                 <ol><li><label for="numberlength">Number of num:</label><input type="text" id="numberlength" name="numberlength" value="[% subscription.numberlength | html %]" /></li>
39                 <li><label for="weeklength">Number of weeks: </label><input type="text" id="weeklength" name="weeklength" value="[% subscription.weeklength | html %]" /></li>
40                 <li><label for="monthlength">Number of months: </label><input type="text" id="monthlength" name="monthlength" value="[% subscription.monthlength | html %]" /></li></ol></fieldset></li>
41                 <li><label for="note">Note for the librarian that will manage your renewal request: </label>
42                 <textarea name="note" id="note" rows="5" cols="50"></textarea></li></ol></fieldset>
43                 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
44 </form>
45 [% END %]
46
47 [% MACRO jsinclude BLOCK %]
48     [% INCLUDE 'calendar.inc' %]
49     <script type="text/javascript">
50         $(document).ready(function(){
51             $(".close").on("click", function(e){
52                 e.preventDefault();
53                 window.opener.location.reload(false);
54                 self.close();
55             });
56         });
57     </script>
58 [% END %]
59
60 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]