source: main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/browser_templates/fileupload.pt @ 9168

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

Backup of local changes in branch (work in progress).

File size: 1.1 KB
Line 
1<tr>
2  <td class="fieldname">
3    <span tal:replace="viewlet/label">FILENAME</span>:
4  </td>
5  <td>
6    <span class="widget">
7
8      <tal:file tal:condition="viewlet/file_exists">
9        <a tal:attributes="href viewlet/download_name"
10           tal:content="viewlet/title"
11           target="image">
12          LINK
13        </a>
14      </tal:file>
15      <br />
16      <input type="file" tal:attributes="name viewlet/input_name"/>
17      <br /><br />
18      <input type="submit" tal:condition="viewlet/file_exists"
19             tal:attributes="id python:('delete_%s' % viewlet.input_name);
20                name python:('delete_%s' % viewlet.input_name)"
21             value="Delete attachment" class="btn error" />
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 new file" class="btn primary" />
26      <span i18n:translate="">
27        Max. file size:
28        <span tal:replace="viewlet/max_upload_size">10 KB</span>
29      </span>
30    </span>
31    <br />
32  </td>
33</tr>
Note: See TracBrowser for help on using the repository browser.