Ignore:
Timestamp:
14 Nov 2011, 12:17:54 (13 years ago)
Author:
Henrik Bettermann
Message:

Add second file upload viewlet, add tests and repair FileUpload? methods. Each button must get a dedicated id and name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/fileupload.pt

    r7108 r7111  
    1313          LINK
    1414        </a>
    15         <input type="submit" id="delete"
    16                name="delete" value="Delete" class="button" />
    17         <br /><br />
     15        <input type="submit"
     16               tal:attributes="id python:('delete_%s' % viewlet.input_name);
     17                  name python:('delete_%s' % viewlet.input_name)"
     18               value="Delete" class="button" />
     19        <br />
    1820      </tal:file>
    1921      <input type="file" tal:attributes="name viewlet/input_name"/>
    20       <input type="submit" id="upload"
    21              name="upload" value="Upload" class="button" />
     22      <input type="submit"
     23               tal:attributes="id python:('upload_%s' % viewlet.input_name);
     24                  name python:('upload_%s' % viewlet.input_name)"
     25               value="Upload" class="button" />
    2226      <br />
    2327      <span i18n:translate="">
Note: See TracChangeset for help on using the changeset viewer.