source: main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/browser_templates/imageupload.pt @ 12704

Last change on this file since 12704 was 12556, checked in by Henrik Bettermann, 10 years ago

Adjust to fileupload.pt

File size: 1.3 KB
Line 
1<tr i18n:domain="waeup.ikoba">
2  <td class="fieldname">
3    <span tal:replace="viewlet/label">FILENAME</span>:
4  </td>
5  <td>
6    <tal:img 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          onclick python:'return window.confirm(\'%s\')' % view.deletion_warning"
14       value="Delete" class="btn btn-danger" />
15    </tal:img>
16    <div class="input-group" tal:condition="not:viewlet/file_exists">
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);
27                name python:('upload_%s' % viewlet.input_name);
28                value viewlet/upload_button"
29               class="btn btn-primary" />
30        (<span tal:replace="viewlet/max_upload_size">10 kB</span> max.)
31      </div>
32    </div>
33  </td>
34</tr>
Note: See TracBrowser for help on using the repository browser.