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

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

Label colons should be rendered by pagetemplates and not by label attributes.

File size: 1.2 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
10      <tal:file tal:condition="viewlet/file_exists">
11        <a tal:attributes="href viewlet/download_name"
12           tal:content="viewlet/title"
13           target="image">
14          LINK
15        </a>
16      </tal:file>
17      <br />
18      <input type="file" tal:attributes="name viewlet/input_name"/>
19      <br />
20      <input type="submit" tal:condition="viewlet/file_exists"
21             tal:attributes="id python:('delete_%s' % viewlet.input_name);
22                name python:('delete_%s' % viewlet.input_name)"
23             value="Delete attachment" class="button" />
24      <input type="submit"
25               tal:attributes="id python:('upload_%s' % viewlet.input_name);
26                  name python:('upload_%s' % viewlet.input_name)"
27               value="Upload new file" class="button" />
28      <span i18n:translate="">
29        Max. file size:
30        <span tal:replace="viewlet/max_upload_size">10 KB</span>
31      </span>
32    </span>
33    <br />
34  </td>
35</tr>
Note: See TracBrowser for help on using the repository browser.