Last change
on this file since 8366 was
8366,
checked in by Henrik Bettermann, 13 years ago
|
We expect many uploaded files and have to improve file management.
- Provide download view for uploaded csv files.
- Let managers delete uploaded files.
- Restrict upload to csv files.
- Pending files must not be re-uploaded. They can either be edited in the files system (e.g. through ftp) or removed.
ToDo?:
- Add browser tests
- Add upload permission permission (People, who have the permission to manage files in the datacenter, are not automatically allowed to import data)
|
File size:
1.4 KB
|
Rev | Line | |
---|
[7811] | 1 | <p i18n:domain="waeup.kofa" i18n:translate=""> |
---|
[4147] | 2 | The data center helps you to manage portal data. You can upload CSV |
---|
| 3 | files here, which will be available for import afterwards. |
---|
[4672] | 4 | </p> |
---|
[4147] | 5 | |
---|
[7811] | 6 | <p i18n:domain="waeup.kofa"> |
---|
[7705] | 7 | <b i18n:translate="">Storage path:</b> |
---|
| 8 | <span tal:content="context/storage">/foo/bar</span> |
---|
[4672] | 9 | </p> |
---|
[4147] | 10 | |
---|
[8366] | 11 | <form action="." tal:attributes="action request/URL" method="post" |
---|
| 12 | i18n:domain="waeup.kofa" enctype="multipart/form-data"> |
---|
| 13 | <table i18n:domain="waeup.kofa" class="display dataTableManage"> |
---|
| 14 | <thead> |
---|
| 15 | <tr> |
---|
| 16 | <th></th> |
---|
| 17 | <th i18n:translate="">File</th> |
---|
| 18 | <th i18n:translate="">Size</th> |
---|
| 19 | <th i18n:translate="">Upload Date</th> |
---|
| 20 | </tr> |
---|
| 21 | </thead> |
---|
| 22 | <tbody> |
---|
| 23 | <tr tal:repeat="file context/getFiles" class="gradeC"> |
---|
| 24 | <td> |
---|
| 25 | <input type="checkbox" name="val_id" |
---|
| 26 | tal:attributes="value file/name" /> |
---|
| 27 | </td> |
---|
| 28 | <td><a tal:attributes="href python: 'download?filename=' + file.name" |
---|
| 29 | tal:content="file/name">FILENAME</a></td> |
---|
| 30 | <td tal:content="file/size">12 k</td> |
---|
| 31 | <td tal:content="file/uploaddate">Mar 12, 2008</td> |
---|
| 32 | </tr> |
---|
| 33 | </tbody> |
---|
| 34 | </table> |
---|
| 35 | <div tal:condition="view/availableActions"> |
---|
| 36 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
| 37 | <input tal:replace="structure action/render"/> |
---|
| 38 | </span> |
---|
| 39 | </div> |
---|
| 40 | </form> |
---|
Note: See
TracBrowser for help on using the repository browser.