Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt
Jonathan Druart 50c68497a2 Bug 7910: Add the ability to renew several subscriptions at once
This patch adds a "Renew all selected subscriptions" action link on top
of the table of the "Check expiration" page.

It will allow to auto-renew several subscriptions.

Test plan:
Make sure this new link renew the selected subscriptions as expected.

Sponsored-by: BULAC - http://www.bulac.fr/

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-24 12:04:46 -03:00

52 lines
2.2 KiB
Text

[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% IF subscription %]
<title>Koha &rsaquo; Serials subscription renew #[% subscription.subscriptionid %]</title>
[% ELSE %]
<title>Koha &rsaquo; Serials subscription renew</title>
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="ser_subscription-renew" class="ser">
<div class="container-fluid">
[% IF op == 'renew' %]
Subscription renewed.
<script type="text/javascript">
//<![CDATA[
//opener.document.location.reload();
window.opener.location.reload(false);
self.close();
//]]>
</script>
[% ELSE %]
<div id="bd">
<form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
<input type="hidden" name="op" value="renew" />
<input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid %]" />
<fieldset class="rows"><legend>Subscription renewal for [% subscription.bibliotitle %]</legend>
<ol>
<li>
<label for="startdate">Start date: </label>
<input type="text" size="10" id="startdate" name="startdate" value="[% startdate %]" class="datepicker"/>
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
<li><fieldset>
<legend>Subscription length:</legend>
<ol><li><label for="numberlength">Number of num:</label><input type="text" id="numberlength" name="numberlength" value="[% subscription.numberlength %]" /></li>
<li><label for="weeklength">Number of weeks: </label><input type="text" id="weeklength" name="weeklength" value="[% subscription.weeklength %]" /></li>
<li><label for="monthlength">Number of months: </label><input type="text" id="monthlength" name="monthlength" value="[% subscription.monthlength %]" /></li></ol></fieldset></li>
<li><label for="note">Note for the librarian that will manage your renewal request: </label>
<textarea name="note" id="note" rows="5" cols="50"></textarea></li></ol></fieldset>
<fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
</form>
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]