Merge remote-tracking branch 'origin/new/bug_7818'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / files.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Files for [% INCLUDE 'patron-title.inc' %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body>
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'patron-search.inc' %]
9
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Files for [% INCLUDE 'patron-title.inc' %]</div>
11
12 <div id="doc3" class="yui-t2">
13     <div id="bd">
14         <div id="yui-main">
15             <div class="yui-b">
16                 [% INCLUDE 'circ-toolbar.inc' %]
17
18                 <h1>Files</h1>
19
20                 <table>
21                     <thead>
22                         <th>Name</th>
23                         <th>Type</th>
24                         <th>Description</th>
25                         <th>Uploaded</th>
26                         [% IF CAN_user_borrowers %]<th>&nbsp;</th>[% END %]
27                     </thead>
28
29                     <tbody>
30                         [% IF errors %]
31                             <div class="error warn">
32                                 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
33                                 [% IF errors.no_file %]You did not select a file to upload.[% END %]
34                             </div>
35                         [% END %]
36
37                         [% FOREACH f IN files %]
38                             <tr>
39                                  <td><a href="?borrowernumber=[% borrowernumber %]&op=download&file_id=[% f.file_id %]">[% f.file_name %]</a></td>
40                                  <td>[% f.file_type %]</td>
41                                  <td>[% f.file_description %]</td>
42                                  <td>[% f.date_uploaded | $KohaDates %]</td>
43                                  [% IF CAN_user_borrowers %]<td><a href="?borrowernumber=[% borrowernumber %]&op=delete&file_id=[% f.file_id %]">Delete</a></td>[% END %]
44                             </tr>
45                         [% END %]
46                     </tbody>
47                 </table>
48
49                 <form method="post" enctype="multipart/form-data">
50                     <fieldset>
51                         <legend>Upload New File</legend>
52
53                         <input type="hidden" name="op" value="upload" />
54                         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
55                         <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
56
57                         <label for="description">Description:</label>
58                         <input name="description" type="text" />
59
60                         <input name="uploadfile" type="file" id="uploadfile" />
61
62                         <input name="upload" type="submit" id="upload" value="Upload File" />
63                     </fieldset>
64                 </form>
65
66             </div>
67         </div>
68
69         <div class="yui-b">
70             [% INCLUDE 'circ-menu.inc' %]
71         </div>
72     </div>
73 </div>
74 [% INCLUDE 'intranet-bottom.inc' %]