Changeset 12556 for main


Ignore:
Timestamp:
3 Feb 2015, 17:36:15 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to fileupload.pt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/imageupload.pt

    r12531 r12556  
    44  </td>
    55  <td>
    6     <img align="middle" height="125px"
    7          tal:attributes="src python: view.url(context, viewlet.download_name)" />
    8     &nbsp;
    9     <input type="submit" tal:condition="viewlet/file_exists"
    10      tal:attributes="id python:('delete_%s' % viewlet.input_name);
    11         name python:('delete_%s' % viewlet.input_name);
    12         onclick python:'return window.confirm(\'%s\')' % view.deletion_warning"
    13      value="Delete" class="btn btn-danger" />
    14     <br /><br />
    15 
    16                 <div class="input-group">
    17                         <div class="input-group-btn">
    18                                 <div class="btn btn-default btn-file">
     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">
    1919          Select new file&hellip;
    2020          <input type="file" tal:attributes="name viewlet/input_name" />
    2121        </div>
    22                         </div>
    23                         <input type="text" class="form-control" readonly>
     22      </div>
     23      <input type="text" class="form-control" readonly>
    2424      <div class="input-group-btn">
    2525        <input type="submit"
Note: See TracChangeset for help on using the changeset viewer.