view zpt/addMetadataMappingForm.zpt @ 23:5ed16f971297

getDomFromPathOrUrl does not throw exception but returns None.
author casties
date Wed, 25 Jul 2012 12:53:17 +0200
parents 3dadf0d89261
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>