view zpt/changeMetadataMapping.zpt @ 2:ac8e119b25ec

trying to make import from xml work
author casties
date Tue, 26 Jul 2011 11:55:19 +0200
parents e4bae49e657b
children 3dadf0d89261
line wrap: on
line source

<div tal:replace="structure here/manage_page_header">Header</div>
<!-- ZOPE management tabs -->
<div tal:define="manage_tabs_message options/manage_tabs_message | nothing"
  tal:replace="structure here/manage_tabs">Tabs</div>
<!-- end of ZOPE management tabs -->
<form name="form" action="manage_changeMetaDataMapping" method="post">
  <p><b>Title (=Reference Type):</b> <input type="text" name="titleOfObject"
    tal:attributes="value here/title"></p>
  <ul>
    <li><b>Tag-Name:</b> Should be lower case only (e.g. author, number_of_pages,
      ...)
    <li><b>Label: </b> Human readable name for display purposes (Author, Number of
      Pages, ...)
    <li><b>Explanation:</b> Should contain a help text, what and how to enter in this
      field. Can contain HTML tags.
  </ul>
  <p>(Leave Tag-Name empty to delete field. Add Tag-Name in empty row to add field.)</p>
  
  <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>
    <tal:block tal:repeat="idx python:range(0,20)">
      <tr tal:define="name python:here.getAt(here.fieldList,idx); 
        desc python:here.fields.get(name, {'tag':'','label':'','explanation':'','status':'optional','valuelist':'','dcmap':''})">
        <td valign="top"><input type="text"
          tal:attributes="name string:field_$idx; value desc/tag" size="10" /></td>
        <td valign="top"><input type="text"
          tal:attributes="name string:label_$idx; value desc/label" size="20" /></td>
        <td valign="top"><textarea rows="3" cols="20"
            tal:attributes="name string:explanation_$idx" tal:content="desc/explanation"></textarea>
        </td>
        <td valign="top"><input type="checkbox"
          tal:attributes="name string:status_$idx; checked python:desc['status']=='optional'"
          value="optional" /></td>
        <td valign="top"><textarea rows="3" cols="20"
            tal:attributes="name string:values_$idx" tal:content="desc/valuelist"></textarea>
        </td>
        <td valign="top"><input type="text"
          tal:attributes="name string:dcmap_$idx; value desc/dcmap" size="10" /></td>
      </tr>
    </tal:block>
  </table>
  <input type="submit" value="Change"><br/>
</form>