Changeset 4179


Ignore:
Timestamp:
27 May 2009, 08:41:58 (16 years ago)
Author:
uli
Message:

Provide a suitable CSV import viewlet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/datacenter_templates/importcsvmain.pt

    r4171 r4179  
    11<h1>Import data from CSV file</h1>
    22
    3 <div tal:repeat="importer context/getImporters">
    4   <div tal:content="importer/datatype">datatype</div>
    5 </div>
     3<table>
     4  <thead>
     5    <th>File</th><th>Importer</th><th>Erase old content?</th>
     6  </thead>
     7  <tbody>
     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!" />
     28
     29        </td>
     30      </form>
     31    </tr>
     32   
     33  </tbody>
     34</table>
     35<input type="submit" name="CANCEL" value="Cancel" />
Note: See TracChangeset for help on using the changeset viewer.