Bug 18762: Remove warnings from xt/author/valid-templates.t
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / rotating-collections-toolbar.inc
1 <script type="text/javascript">
2     $(document).ready(function(){
3         $(".confirmdelete").click(function(){
4             $(this).parents('tr').addClass("warn");
5             if(confirm(_("Are you sure you want to delete this rotating collection?"))){
6                 return true;
7             } else {
8                 $(this).parents('tr').removeClass("warn");
9                 return false;
10             }
11         });
12 });
13 </script>
14
15             <div id="toolbar" class="btn-toolbar">
16                 <div class="btn-group">
17                     <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>
18                 </div>
19
20                 [% IF ( colId ) %]
21                     <div class="btn-group">
22                         <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>
23                     </div>
24                     <div class="btn-group">
25                         <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>
26                     </div>
27                     <div class="btn-group">
28                         <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>
29                     </div>
30                 [% END %]
31             </div>