source: main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/imageupload.pt @ 11110

Last change on this file since 11110 was 11058, checked in by Henrik Bettermann, 11 years ago

Use absolute URLs. Otherwise images and files might not be found.

File size: 977 bytes
Line 
1<tr i18n:domain="waeup.kofa">
2  <td class="fieldname">
3    <span tal:replace="viewlet/label">FILENAME</span>:
4  </td>
5  <td>
6    <img align="middle" height="125px"
7         tal:attributes="src python: view.url(context, viewlet.download_name)" />
8    <input type="submit" tal:condition="viewlet/file_exists"
9     tal:attributes="id python:('delete_%s' % viewlet.input_name);
10        name python:('delete_%s' % viewlet.input_name)"
11     value="Delete" class="btn btn-danger" />
12    <br /><br />
13    <input type="file" tal:attributes="name viewlet/input_name"/>
14    <br /><br />
15    <input type="submit"
16             tal:attributes="id python:('upload_%s' % viewlet.input_name);
17                name python:('upload_%s' % viewlet.input_name);
18                value viewlet/upload_button"
19             value="Upload" class="btn btn-primary" />
20    <span i18n:translate="">
21      Max. file size:
22    </span>
23    <span tal:replace="viewlet/max_upload_size">10 KB</span>
24  </td>
25</tr>
Note: See TracBrowser for help on using the repository browser.