Ignore:
Timestamp:
14 Nov 2011, 08:18:15 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement file deletion.

Show file link only if file exists.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates
Files:
2 edited

Legend:

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

    r7106 r7107  
    1 <tr>
     1<tr tal:condition = "viewlet/file_exists">
    22  <td class="label">
    33    <label i18n:translate="">
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/fileupload.pt

    r7106 r7107  
    77  <td class="field">
    88    <span class="widget">
    9       <a tal:attributes="href viewlet/download_name"
    10          tal:content="viewlet/download_name"
    11          target="image">
    12         LINK
    13       </a>
    14       <br />
     9      <tal:file tal:condition="viewlet/file_exists">
     10        <input type="submit" id="delete"
     11               name="delete" value="Delete file" class="button" />
     12        <a tal:attributes="href viewlet/download_name"
     13           tal:content="viewlet/download_name"
     14           target="image">
     15          LINK
     16        </a>
     17        <br /><br />
     18      </tal:file>
     19      Upload new file:<br />
    1520      <input type="file" tal:attributes="name viewlet/input_name"/>
    1621      <br />
Note: See TracChangeset for help on using the changeset viewer.