5 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Files for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="pat_files" class="pat">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'patron-search.inc' %]
16 <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>
18 <div id="doc3" class="yui-t2">
22 [% INCLUDE 'members-toolbar.inc' %]
27 <div class="dialog alert">
28 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
29 [% IF errors.no_file %]You did not select a file to upload.[% END %]
41 [% IF CAN_user_borrowers_edit_borrowers %]<th> </th>[% END %]
46 [% FOREACH f IN files %]
48 <td><a href="?borrowernumber=[% patron.borrowernumber | uri %]&op=download&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a></td>
49 <td>[% f.file_type | html %]</td>
50 <td>[% f.file_description | html %]</td>
51 <td>[% f.date_uploaded | $KohaDates %]</td>
52 [% IF CAN_user_borrowers_edit_borrowers %]<td><a class="btn btn-default btn-xs confirmdelete" href="?borrowernumber=[% patron.borrowernumber | html %]&op=delete&file_id=[% f.file_id | html %]"><i class="fa fa-trash"></i> Delete</a></td>[% END %]
58 <div class="dialog message">
59 <p>This patron has no files attached.</p>
63 <form method="post" action="/cgi-bin/koha/members/files.pl" enctype="multipart/form-data">
64 <fieldset class="rows">
65 <legend>Upload new file</legend>
67 <li><input type="hidden" name="op" value="upload" />
68 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
69 <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
71 <label for="description">Description:</label>
72 <input name="description" id="description" type="text" /></li>
74 <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
77 <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload file" /></fieldset>
85 [% INCLUDE 'circ-menu.inc' %]
89 [% MACRO jsinclude BLOCK %]
90 [% INCLUDE 'str/members-menu.inc' %]
91 [% Asset.js("js/members-menu.js") | $raw %]
92 <script type="text/javascript">
93 $(document).ready(function(){
94 $(".confirmdelete").on("click", function(){
95 $(this).parents('tr').addClass("warn");
96 if(confirm(_("Are you sure you want to delete this file?"))){
99 $(this).parents('tr').removeClass("warn");
107 [% INCLUDE 'intranet-bottom.inc' %]