Jonathan Druart
7c05f4fbe4
Bug 11401 introduced code to support Norwegian national library card. This code is too specific to be part of Koha as it, it should be a plugin instead. Moreover nobody uses it, but a modified version (see comment 3). Test plan: Add/edit/delete patron and make sure there are no regressions introduced by these patches Signed-off-by: Benjamin Rokseth <benjamin.rokseth@deichman.no> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
65 lines
2.6 KiB
Text
65 lines
2.6 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% USE Price %]
|
|
[% USE Branches %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Delete patron [% patron.firstname | html %] [% patron.surname | html %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="pat_deletemem" class="pat">
|
|
[% 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> › Delete patron [% patron.firstname | html %] [% patron.surname | html %]</div>
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
[% INCLUDE 'members-toolbar.inc' %]
|
|
[% IF ( ItemsOnIssues || charges || guarantees ) %]
|
|
<div class="dialog alert">
|
|
<h3>Cannot delete patron</h3>
|
|
<ul>
|
|
[% IF ( ItemsOnIssues ) %]
|
|
<li>Patron has [% ItemsOnIssues | html %] item(s) checked out.</li>
|
|
[% END %]
|
|
[% IF ( charges ) %]
|
|
<li>Patron has [% charges | $Price | html %] in fines.</li>
|
|
[% END %]
|
|
[% IF ( guarantees ) %]
|
|
<li>Patron's record has guaranteed accounts attached.</li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
[% ELSIF op == 'delete_confirm' and patron %]
|
|
[%# TODO add "patron does not exist" unless patron %]
|
|
<div class="dialog alert">
|
|
<h3>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]? This cannot be undone.</h3>
|
|
<form action="/cgi-bin/koha/members/deletemem.pl">
|
|
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
|
|
<input type="hidden" name="member" value="[% patron.borrowernumber | html %]"/>
|
|
<input type="hidden" name="op" value="delete_confirmed" />
|
|
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
|
|
</form>
|
|
<form action="/cgi-bin/koha/members/moremember.pl">
|
|
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
|
|
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-b">
|
|
[% INCLUDE 'circ-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% INCLUDE 'str/members-menu.inc' %]
|
|
[% Asset.js("js/members-menu.js") | $raw %]
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|