Bug 18426: Make sure the logged in user can edit the subscriptions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-renew.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Serials subscription renew #[% subscriptionid %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="ser_subscription-renew" class="ser">
8     <div class="container-fluid">
9
10 [% IF ( renew ) %]
11   Subscription renewed.
12   
13 <script type="text/javascript">
14 //<![CDATA[
15   opener.document.location.reload();
16   self.close();
17   //]]>
18 </script>
19 [% ELSE %]
20       <div id="bd">
21 <form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
22                 <input type="hidden" name="op" value="renew" />
23                 <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
24                 <fieldset class="rows"><legend>Subscription renewal for [% bibliotitle %]</legend>
25         <ol>
26             <li>
27                 <label for="startdate">Start date: </label>
28                 <input type="text" size="10" id="startdate" name="startdate" value="[% startdate %]" class="datepicker"/>
29                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
30             </li>
31                 <li><fieldset>
32                 <legend>Subscription length:</legend>
33                 <ol><li><label for="numberlength">Number of num:</label><input type="text" id="numberlength" name="numberlength" value="[% numberlength %]" /></li>
34                 <li><label for="weeklength">Number of weeks: </label><input type="text" id="weeklength" name="weeklength" value="[% weeklength %]" /></li>
35                 <li><label for="monthlength">Number of months: </label><input type="text" id="monthlength" name="monthlength" value="[% monthlength %]" /></li></ol></fieldset></li>
36                 <li><label for="note">Note for the librarian that will manage your renewal request: </label>
37                 <textarea name="note" id="note" rows="5" cols="50"></textarea></li></ol></fieldset>
38                 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
39 </form>
40 [% END %]
41
42 [% MACRO jsinclude BLOCK %]
43     [% INCLUDE 'calendar.inc' %]
44 [% END %]
45
46 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
47