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

Reorganize file upload. Each viewlet gets an upload and a delete button and writes its own log message. Thus there is one line per file deletion or file upload in the log file. The save action does no longer upload the files.

It works perfectly in the UI but I have still some problems with the browser test.

File:
1 edited

Legend:

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

    r7107 r7108  
    88    <span class="widget">
    99      <tal:file tal:condition="viewlet/file_exists">
    10         <input type="submit" id="delete"
    11                name="delete" value="Delete file" class="button" />
    1210        <a tal:attributes="href viewlet/download_name"
    1311           tal:content="viewlet/download_name"
     
    1513          LINK
    1614        </a>
     15        <input type="submit" id="delete"
     16               name="delete" value="Delete" class="button" />
    1717        <br /><br />
    1818      </tal:file>
    19       Upload new file:<br />
    2019      <input type="file" tal:attributes="name viewlet/input_name"/>
     20      <input type="submit" id="upload"
     21             name="upload" value="Upload" class="button" />
    2122      <br />
    2223      <span i18n:translate="">
Note: See TracChangeset for help on using the changeset viewer.