Lines 127-133
Link Here
|
127 |
<form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post"> |
127 |
<form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post"> |
128 |
[% INCLUDE 'csrf-token.inc' %] |
128 |
[% INCLUDE 'csrf-token.inc' %] |
129 |
<fieldset class="rows"> |
129 |
<fieldset class="rows"> |
130 |
<input type="hidden" name="op-cud" value="add_validate" /> |
130 |
<input type="hidden" name="op" value="cud-add_validate" /> |
131 |
[% IF library %] |
131 |
[% IF library %] |
132 |
<input type="hidden" name="is_a_modif" value="1" /> |
132 |
<input type="hidden" name="is_a_modif" value="1" /> |
133 |
[% END %] |
133 |
[% END %] |
Lines 302-308
Link Here
|
302 |
<form action="/cgi-bin/koha/admin/branches.pl" method="post"> |
302 |
<form action="/cgi-bin/koha/admin/branches.pl" method="post"> |
303 |
[% INCLUDE 'csrf-token.inc' %] |
303 |
[% INCLUDE 'csrf-token.inc' %] |
304 |
<h1>Are you sure you want to delete [% library.branchname | html %] ([% library.branchcode | html %])?</h1> |
304 |
<h1>Are you sure you want to delete [% library.branchname | html %] ([% library.branchcode | html %])?</h1> |
305 |
<input type="hidden" name="op-cud" value="delete_confirmed" /> |
305 |
<input type="hidden" name="op" value="cud-delete_confirmed" /> |
306 |
<input type="hidden" name="branchcode" value="[% library.branchcode | html %]" /> |
306 |
<input type="hidden" name="branchcode" value="[% library.branchcode | html %]" /> |
307 |
<input type="hidden" name="branchname" value="[% library.branchname | html %]"> |
307 |
<input type="hidden" name="branchname" value="[% library.branchname | html %]"> |
308 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
308 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
Lines 605-611
Link Here
|
605 |
"data": function( row, type, val, meta ) { |
605 |
"data": function( row, type, val, meta ) { |
606 |
|
606 |
|
607 |
var result = '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode='+encodeURIComponent(row.library_id)+'" role="button"><i class="fa-solid fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'; |
607 |
var result = '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode='+encodeURIComponent(row.library_id)+'" role="button"><i class="fa-solid fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'; |
608 |
result += '<form action="/cgi-bin/koha/admin/branches.pl" method="post">'; |
608 |
result += '<form action="/cgi-bin/koha/admin/branches.pl" method="get">'; |
609 |
result += '<input type="hidden" name="branchcode" value="'+row.library_id.escapeHtml()+'" />'+"\n"; |
609 |
result += '<input type="hidden" name="branchcode" value="'+row.library_id.escapeHtml()+'" />'+"\n"; |
610 |
result += '<input type="hidden" name="op" value="delete_confirm" />'; |
610 |
result += '<input type="hidden" name="op" value="delete_confirm" />'; |
611 |
result += '<button type="submit" id="delete_library_'+row.library_id.escapeHtml()+'" class="btn btn-default btn-xs" role="button"><i class="fa fa-trash-can" aria-hidden="true"></i> '+_("Delete")+'</button></form>'; |
611 |
result += '<button type="submit" id="delete_library_'+row.library_id.escapeHtml()+'" class="btn btn-default btn-xs" role="button"><i class="fa fa-trash-can" aria-hidden="true"></i> '+_("Delete")+'</button></form>'; |
612 |
- |
|
|