Changeset 4187 for waeup/branches/ulif-rewrite/src
- Timestamp:
- 27 May 2009, 10:09:56 (15 years ago)
- Location:
- waeup/branches/ulif-rewrite/src/waeup/datacenter_templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/datacenter_templates/content.pt
r4147 r4187 29 29 <div> 30 30 <a href='@@upload'>Upload data</a> 31 <a href='@@importcsv'>Import CSV data</a> 31 32 </div> -
waeup/branches/ulif-rewrite/src/waeup/datacenter_templates/importcsvmain.pt
r4180 r4187 1 1 <h1>Import data from CSV file</h1> 2 2 3 < table>4 < thead>5 <th>File</th><th>Importer</th><th>Erase old content?</th>6 </ thead>7 < tbody>3 <div tal:define="imports viewlet/getImports"> 4 <div tal:condition="python: len(imports)==0"> 5 Currently no files are available for import. 6 </div> 7 <div tal:condition="python: len(imports)>0"> 8 8 9 <tr tal:repeat="import viewlet/getImports"> 10 <form method="POST"> 11 <td tal:content="import/file/name">filename</td> 12 <td> 13 <select name='receiverid'> 14 <option tal:repeat="importer import/importers" 15 tal:attributes="value importer/receiverid" 16 tal:content="importer/datatype"> 17 datatype 18 </option> 19 </select> 20 </td> 21 <td> 22 <input name="clear" type="checkbox" checked="checked" /> 23 </td> 24 <td> 25 <input type="hidden" name="csvfile" 26 tal:attributes="value import/file/context" /> 27 <input type="submit" name="SUBMIT" value="Import!" /> 9 <div> 10 The following files are available for import: 11 </div> 28 12 29 </td> 30 </form> 31 </tr> 13 <table> 14 <thead> 15 <th>File</th><th>Importer</th><th>Erase old content?</th> 16 </thead> 17 <tbody> 18 19 <tr tal:repeat="import imports"> 20 <form method="POST"> 21 <td tal:content="import/file/name">filename</td> 22 <td> 23 <select name='receiverid'> 24 <option tal:repeat="importer import/importers" 25 tal:attributes="value importer/receiverid" 26 tal:content="importer/datatype"> 27 datatype 28 </option> 29 </select> 30 </td> 31 <td> 32 <input name="clear" type="checkbox" checked="checked" /> 33 </td> 34 <td> 35 <input type="hidden" name="csvfile" 36 tal:attributes="value import/file/context" /> 37 <input type="submit" name="SUBMIT" value="Import!" /> 38 39 </td> 40 </form> 41 </tr> 32 42 33 </tbody> 34 </table> 35 <input type="submit" name="CANCEL" value="Cancel" /> 43 </tbody> 44 </table> 45 46 <div> 47 Note, that importing will most probably destroy existing data! 48 </div> 49 50 51 </div> 52 53 <form method="POST"> 54 <input type="submit" name="CANCEL" value="Cancel" /> 55 </form> 56 </div>
Note: See TracChangeset for help on using the changeset viewer.