Lines 3-8
Link Here
|
3 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
<title>Files for [% INCLUDE 'patron-title.inc' %]</title> |
4 |
<title>Files for [% INCLUDE 'patron-title.inc' %]</title> |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
6 |
<script type="text/javascript"> |
7 |
$(document).ready(function(){ |
8 |
$(".confirmdelete").on("click", function(){ |
9 |
$(this).parents('tr').addClass("warn"); |
10 |
if(confirm(_("Are you sure you want to delete this file?"))){ |
11 |
return true; |
12 |
} else { |
13 |
$(this).parents('tr').removeClass("warn"); |
14 |
return false; |
15 |
} |
16 |
}); |
17 |
}); |
18 |
</script> |
6 |
</head> |
19 |
</head> |
7 |
<body id="pat_files" class="pat"> |
20 |
<body id="pat_files" class="pat"> |
8 |
[% INCLUDE 'header.inc' %] |
21 |
[% INCLUDE 'header.inc' %] |
Lines 44-50
Link Here
|
44 |
<td>[% f.file_type %]</td> |
57 |
<td>[% f.file_type %]</td> |
45 |
<td>[% f.file_description %]</td> |
58 |
<td>[% f.file_description %]</td> |
46 |
<td>[% f.date_uploaded | $KohaDates %]</td> |
59 |
<td>[% f.date_uploaded | $KohaDates %]</td> |
47 |
[% IF CAN_user_borrowers %]<td><a href="?borrowernumber=[% borrowernumber %]&op=delete&file_id=[% f.file_id %]">Delete</a></td>[% END %] |
60 |
[% IF CAN_user_borrowers %]<td><a class="btn btn-default btn-xs confirmdelete" href="?borrowernumber=[% borrowernumber %]&op=delete&file_id=[% f.file_id %]"><i class="fa fa-trash"></i> Delete</a></td>[% END %] |
48 |
</tr> |
61 |
</tr> |
49 |
[% END %] |
62 |
[% END %] |
50 |
</tbody> |
63 |
</tbody> |
51 |
- |
|
|