2 [% USE AuthorisedValues %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Files for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="pat_files" class="pat">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'patron-search.inc' %]
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Files for [% INCLUDE 'patron-title.inc' %]</div>
15 <div id="doc3" class="yui-t2">
19 [% INCLUDE 'members-toolbar.inc' %]
24 <div class="dialog alert">
25 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
26 [% IF errors.no_file %]You did not select a file to upload.[% END %]
38 [% IF CAN_user_borrowers_edit_borrowers %]<th> </th>[% END %]
43 [% FOREACH f IN files %]
45 <td><a href="?borrowernumber=[% borrowernumber %]&op=download&file_id=[% f.file_id %]">[% f.file_name %]</a></td>
46 <td>[% f.file_type %]</td>
47 <td>[% f.file_description %]</td>
48 <td>[% f.date_uploaded | $KohaDates %]</td>
49 [% IF CAN_user_borrowers_edit_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 %]
55 <div class="dialog message">
56 <p>This patron has no files attached.</p>
60 <form method="post" action="/cgi-bin/koha/members/files.pl" enctype="multipart/form-data">
61 <fieldset class="rows">
62 <legend>Upload New File</legend>
64 <li><input type="hidden" name="op" value="upload" />
65 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
66 <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
68 <label for="description">Description:</label>
69 <input name="description" id="description" type="text" /></li>
71 <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
74 <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
82 [% INCLUDE 'circ-menu.inc' %]
86 [% MACRO jsinclude BLOCK %]
87 <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu.js"></script>
88 <script type="text/javascript">
89 $(document).ready(function(){
90 $(".confirmdelete").on("click", function(){
91 $(this).parents('tr').addClass("warn");
92 if(confirm(_("Are you sure you want to delete this file?"))){
95 $(this).parents('tr').removeClass("warn");
103 [% INCLUDE 'intranet-bottom.inc' %]