source: main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/imageupload.pt

Last change on this file was 16609, checked in by Henrik Bettermann, 3 years ago

Enable students and officers to upload scanned signature in the same
way as passport pictures are handled. Some tabs and titles had to be
renamed. The placeholder file, which is still the portrait
placeholder, are no longer shown on base pages.

File size: 1.2 KB
RevLine 
[7811]1<tr i18n:domain="waeup.kofa">
[7459]2  <td class="fieldname">
3    <span tal:replace="viewlet/label">FILENAME</span>:
[7097]4  </td>
[7459]5  <td>
[16609]6    <tal:file_exists condition="viewlet/file_exists">
7      <img align="middle" height="125px"
8           tal:attributes="src python: view.url(context, viewlet.download_name)" />
9      &nbsp;
10      <input type="submit"
11       tal:attributes="id python:('delete_%s' % viewlet.input_name);
12          name python:('delete_%s' % viewlet.input_name)"
13       value="Delete" class="btn btn-danger" />
14      <br /><br />
15    </tal:file_exists>
[11558]16                <div class="input-group">
17                        <div class="input-group-btn">
18                                <div class="btn btn-default btn-file">
19          Select new file&hellip;
20          <input type="file" tal:attributes="name viewlet/input_name" />
21        </div>
22                        </div>
23                        <input type="text" class="form-control" readonly>
24      <div class="input-group-btn">
25        <input type="submit"
26               tal:attributes="id python:('upload_%s' % viewlet.input_name);
[7876]27                name python:('upload_%s' % viewlet.input_name);
28                value viewlet/upload_button"
[11558]29               class="btn btn-primary" />
30        (<span tal:replace="viewlet/max_upload_size">10 kB</span> max.)
31      </div>
32    </div>
[7098]33  </td>
[7097]34</tr>
Note: See TracBrowser for help on using the repository browser.