Owen Leonard
047ca33a93
This patch modifies the staff client patron module templates so that JavaScript is included in the footer instead of the header. This patch touches a lot of files because the changes are all interdependent, affecting a couple of module-wide include files. To test, apply the patch and test the JavaScript-driven features of the modified templates: All button controls, DataTables functionality, tabs, etc. Patrons -> Patrons home, patron search results -> Manage pending modification requests -> Patron detail page -> Edit patron -> Set guarantor -> Fines -> Account, Pay fines, Create manual invoice, Create manual credit -> Print receipts for different kinds of charges -> Routing lists -> Circulation history -> Holds history -> Notices -> Statistics -> Files -> Purchase suggestions -> Discharges -> Housebound -> Set permissions -> Change password -> Print summary, slips, and overdues -> Update child to adult patron type Patron toolbar and patron search bar operations should work correctly on all pages. This patch also updates the template for searching the Norwegian national patron database, but it has NOT been tested. Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> Signed-off-by: Zoe Bennett <zoebennett1308@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
79 lines
2.3 KiB
Text
79 lines
2.3 KiB
Text
[% USE KohaDates %]
|
|
[% USE AuthorisedValues %]
|
|
[% USE Branches %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Patrons › [% UNLESS blocking_error %]Discharge for [% firstname %] [% surname %] ([% cardnumber %])[% END %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="discharge" class="discharge">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'patron-search.inc' %]
|
|
|
|
<div id="breadcrumbs">
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
› <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
|
|
› [% UNLESS blocking_error %]Discharge for [% firstname %] [% surname %] ([% cardnumber %])[% END %]
|
|
</div>
|
|
|
|
<div id="doc3" class="yui-t1">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<div class="yui-g">
|
|
<h3>Discharge</h3>
|
|
[% FOR message IN messages %]
|
|
<div class="dialog [% message.type %]">
|
|
[% IF message.code == "unable_to_generate_pdf" %]
|
|
An error occurs when generating the pdf file.
|
|
Please contact the administrator to resolve this problem.
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
[% UNLESS can_be_discharged %]
|
|
<p>Cannot edit discharge: the patron has checked out items.</p>
|
|
[% ELSE %]
|
|
[% IF has_reserves %]
|
|
<p>Borrower has reserves: they will be canceled if the discharge is generated.</p>
|
|
[% END %]
|
|
<form method="post">
|
|
<input type="submit" value="Generate discharge" name="discharge" />
|
|
<input type="hidden" value="[% borrowernumber %]" name="borrowernumber" />
|
|
</form>
|
|
[% END %]
|
|
|
|
[% IF validated_discharges %]
|
|
<h2>Already validated discharges</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Requested</th>
|
|
<th>Validated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOR d IN validated_discharges %]
|
|
<tr>
|
|
<td>[% d.needed | $KohaDates with_hours = 1 %]</td>
|
|
<td>[% d.validated | $KohaDates with_hours = 1 %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% END %]
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'circ-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
<script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu.js"></script>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|