view zpt/changeMetadataMapping.zpt @ 3:3dadf0d89261

more renovation
author casties
date Tue, 26 Jul 2011 20:08:11 +0200
parents e4bae49e657b
children 00147a1ab4ac
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,30)">
      <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 | nothing" size="10" /></td>
        <td valign="top"><input type="text"
          tal:attributes="name string:label_$idx; value desc/label | nothing" size="20" /></td>
        <td valign="top"><textarea rows="3" cols="30"
            tal:attributes="name string:explanation_$idx" tal:content="desc/explanation | nothing"></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 | nothing"></textarea>
        </td>
        <td valign="top"><input type="text"
          tal:attributes="name string:dcmap_$idx; value desc/dcmap | nothing" size="10" /></td>
      </tr>
    </tal:block>
  </table>
  <input type="submit" value="Change"><br/>
</form>