View | Details | Raw Unified | Return to bug 8130
Collapse All | Expand All

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

Return to bug 8130