source: main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/fileupload.pt @ 7109

Last change on this file since 7109 was 7108, checked in by Henrik Bettermann, 14 years ago

Reorganize file upload. Each viewlet gets an upload and a delete button and writes its own log message. Thus there is one line per file deletion or file upload in the log file. The save action does no longer upload the files.

It works perfectly in the UI but I have still some problems with the browser test.

File size: 913 bytes
Line 
1<tr>
2  <td class="label">
3    <label i18n:translate="" tal:attributes="for viewlet/input_name">
4        <span tal:replace="viewlet/label">FILENAME</span>
5    </label>
6  </td>
7  <td class="field">
8    <span class="widget">
9      <tal:file tal:condition="viewlet/file_exists">
10        <a tal:attributes="href viewlet/download_name"
11           tal:content="viewlet/download_name"
12           target="image">
13          LINK
14        </a>
15        <input type="submit" id="delete"
16               name="delete" value="Delete" class="button" />
17        <br /><br />
18      </tal:file>
19      <input type="file" tal:attributes="name viewlet/input_name"/>
20      <input type="submit" id="upload"
21             name="upload" value="Upload" class="button" />
22      <br />
23      <span i18n:translate="">
24        Max. file size:
25        <span tal:replace="viewlet/max_upload_size">10 KB</span>
26      </span>
27    </span>
28  </td>
29</tr>
Note: See TracBrowser for help on using the repository browser.