Koha/koha-tmpl/intranet-tmpl/prog/en/includes/rotating-collections-toolbar.inc
Josef Moravec 804677265e Bug 16239: Update templates
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-01-13 14:41:22 +00:00

31 lines
1.6 KiB
HTML

<script type="text/javascript">
$(document).ready(function(){
$(".confirmdelete").click(function(){
$(this).parents('tr').addClass("warn");
if(confirm(_("Are you sure you want to delete this rotating collection?"))){
return true;
} else {
$(this).parents('tr').removeClass("warn");
return false;
}
});
});
</script>
<div id="toolbar" class="btn-toolbar">
<div class="btn-group">
<a class="btn btn-default btn-sm" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=new"><i class="fa fa-plus"></i> New collection</a>
</div>
[% IF ( colId ) %]
<div class="btn-group">
<a class="btn btn-default btn-sm" href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% colId %]"><i class="fa fa-exchange"></i> Transfer</a>
</div>
<div class="btn-group">
<a class="btn btn-default btn-sm" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&amp;colId=[% colId %]"><i class="fa fa-pencil"></i> Edit</a>
</div>
<div class="btn-group">
<a class="btn btn-default btn-sm confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&amp;colId=[% colId %]"><i class="fa fa-trash"></i> Delete</a>
</div>
[% END %]
</div>