view zpt/addMetadataMappingForm.zpt @ 3:3dadf0d89261

more renovation
author casties
date Tue, 26 Jul 2011 20:08:11 +0200
parents e4bae49e657b
children
line wrap: on
line source


<div tal:replace="structure here/manage_page_header">Header</div>
<h2>Add a Metadata Mapping</h2>
<form name="form" action="manage_addMetaDataMapping" method="post">
  <b> ID: </b><input type="text" name="idOfObject"><br/> <br/> <b>
    Title (=Reference Type): </b><input type="text" name="titleOfObject"><br/> <br/>
  <ul>
    <li><b>Tag-Name:</b> Should be lower case (e.g. author, number-of-pages, ...)</li>
    <li><b>Label:</b> Human readable name for displaying purposes (Author, Number of
      Pages, ...)</li>
    <li><b>Explanation:</b> Should contain a help text, what and how to enter in this
      field. Can contain HTML tags.</li>
  </ul>
  <table border=1>
    <tr>
      <th>Tag-name</th>
      <th>Label</th>
      <th>Explanation</th>
      <th>Optional</th>
      <th>Valuelist</th>
      <th>DC-map</th>
    </tr>
    <tr tal:repeat="idx python:range(0,30)">
      <td valign="top">
        <input type="text" tal:attributes="name string:field_$idx" size="10" />
      </td>
      <td valign="top">
        <input type="text" tal:attributes="name string:label_$idx" size="20" />
      </td>
      <td valign="top">
        <textarea rows="10" cols="40" tal:attributes="name string:explanation_$idx" size="20"></textarea>
      </td>
      <td valign="top">
        <input type="checkbox" tal:attributes="name string:status_$idx" value="optional" checked="checked" />
      </td>
      <td valign="top">
        <textarea rows="10" cols="15" tal:attributes="name string:valuelist_$idx" size="20"></textarea>
      </td>
      <td valign="top">
        <input type="text" tal:attributes="name string:dcmap_$idx" size="10" />
      </td>
    </tr>
  </table>
  <input type="submit" value="Add"><br />
</form>