Bug 34478: (follow-up) batchMod
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
925eb73a27
commit
74d7ae7672
1 changed files with 19 additions and 2 deletions
|
@ -56,7 +56,15 @@
|
|||
|
||||
[% IF ( CAN_user_tools_items_batchmod ) %]
|
||||
[% IF ( count ) %]
|
||||
<li><a id="batchedit" href="/cgi-bin/koha/tools/batchMod.pl?op=show&biblionumber=[% biblionumber | html %]&src=CATALOGUING">Edit items in batch</a></li>
|
||||
<li>
|
||||
<form action="/cgi-bin/koha/tools/batchMod.pl" method="post">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-show" />
|
||||
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
|
||||
<input type="hidden" name="src" value="CATALOGUING" />
|
||||
<button id="batchedit" type="submit" class="btn btn-default" id="modifybiblio">Edit items in a batch</a>
|
||||
</form>
|
||||
</li>
|
||||
[% ELSE %]
|
||||
<li class="disabled"><a id="batchedit-disabled" href="#" data-toggle="tooltip" data-placement="left" title="This record has no items">Edit items in batch</a></li>
|
||||
[% END %]
|
||||
|
@ -64,7 +72,16 @@
|
|||
|
||||
[% IF ( CAN_user_tools_items_batchdel ) %]
|
||||
[% IF ( count ) %]
|
||||
<li><a id="batchdelete" href="/cgi-bin/koha/tools/batchMod.pl?del=1&op=show&biblionumber=[% biblionumber | html %]&src=CATALOGUING">Delete items in a batch</a></li>
|
||||
<li>
|
||||
<form action="/cgi-bin/koha/tools/batchMod.pl" method="post">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-show" />
|
||||
<input type="hidden" name="del" value="1" />
|
||||
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
|
||||
<input type="hidden" name="src" value="CATALOGUING" />
|
||||
<button id="batchdelete" type="submit" class="btn btn-default" id="modifybiblio">Delete items in a batch</a>
|
||||
</form>
|
||||
</li>
|
||||
[% ELSE %]
|
||||
<li class="disabled"><a id="batchdelete-disabled" href="#" data-toggle="tooltip" data-placement="left" title="This record has no items">Delete items in a batch</a></li>
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue