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

Last change on this file since 7114 was 7111, checked in by Henrik Bettermann, 13 years ago

Add second file upload viewlet, add tests and repair FileUpload? methods. Each button must get a dedicated id and name.

File size: 1.1 KB
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"
16               tal:attributes="id python:('delete_%s' % viewlet.input_name);
17                  name python:('delete_%s' % viewlet.input_name)"
18               value="Delete" class="button" />
19        <br />
20      </tal:file>
21      <input type="file" tal:attributes="name viewlet/input_name"/>
22      <input type="submit"
23               tal:attributes="id python:('upload_%s' % viewlet.input_name);
24                  name python:('upload_%s' % viewlet.input_name)"
25               value="Upload" class="button" />
26      <br />
27      <span i18n:translate="">
28        Max. file size:
29        <span tal:replace="viewlet/max_upload_size">10 KB</span>
30      </span>
31    </span>
32  </td>
33</tr>
Note: See TracBrowser for help on using the repository browser.