]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt
Bug 11554: Capitalization fix in patron account on fines tab
[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 'members-toolbar.inc' %]
17
18                 <h1>Files</h1>
19
20                 [% IF errors %]
21                     <div class="dialog alert">
22                         [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
23                         [% IF errors.no_file %]You did not select a file to upload.[% END %]
24                     </div>
25                 [% END %]
26
27                 [% IF ( files ) %]
28                 <table>
29                     <thead>
30                         <tr>
31                             <th>Name</th>
32                             <th>Type</th>
33                             <th>Description</th>
34                             <th>Uploaded</th>
35                             [% IF CAN_user_borrowers %]<th>&nbsp;</th>[% END %]
36                         </tr>
37                     </thead>
38
39                     <tbody>
40                         [% FOREACH f IN files %]
41                             <tr>
42                                  <td><a href="?borrowernumber=[% borrowernumber %]&amp;op=download&amp;file_id=[% f.file_id %]">[% f.file_name %]</a></td>
43                                  <td>[% f.file_type %]</td>
44                                  <td>[% f.file_description %]</td>
45                                  <td>[% f.date_uploaded | $KohaDates %]</td>
46                                  [% IF CAN_user_borrowers %]<td><a href="?borrowernumber=[% borrowernumber %]&amp;op=delete&amp;file_id=[% f.file_id %]">Delete</a></td>[% END %]
47                             </tr>
48                         [% END %]
49                     </tbody>
50                 </table>
51                 [% ELSE %]
52                 <div class="dialog message">
53                     <p>This patron has no files attached.</p>
54                 </div>
55                 [% END %]
56
57                 <form method="post" action="/cgi-bin/koha/members/files.pl" enctype="multipart/form-data">
58                     <fieldset class="rows">
59                         <legend>Upload New File</legend>
60                         <ol>
61                         <li><input type="hidden" name="op" value="upload" />
62                         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
63                         <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
64
65                         <label for="description">Description:</label>
66                         <input name="description" id="description" type="text" /></li>
67
68                         <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
69
70                         </ol>
71                         <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
72                     </fieldset>
73                 </form>
74
75             </div>
76         </div>
77
78         <div class="yui-b">
79             [% INCLUDE 'circ-menu.inc' %]
80         </div>
81     </div>
82 [% INCLUDE 'intranet-bottom.inc' %]