view zpt/addMetadataMappingForm.zpt @ 0:9f9d9be26e53

first checkin in Mercurial (see history in SVN)
author casties
date Mon, 25 Jul 2011 16:50:48 +0200
parents
children e4bae49e657b
line wrap: on
line source

<html>
  <body>
    <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> <b>Label: </b> Human readable name for displaying 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>
      <table border=1>
	<tr>
	  <th>
	    Tag-Name
	  </th>
	  <th>
	    Label
	  </th>
	  <th>
	    Explanation
	  </th>
  	  <th>	  
	    Optional
	  </th>
  	  <th>	  
	    Valuelist
	  </th>
	</tr>
      <tr tal:repeat="field here/getFields">
	<td valign="top">
	  <b tal:content="field"/>
	</td>
	<td valign="top">
	  <input type="text" tal:attributes="name field" size=20>
	</td>
	<td valign="top">
	  <input type="text" tal:attributes="name python:'label_'+field" size=20>
	</td>
	<td valign="top">
	  <textarea rows="10" cols="40" tal:attributes="name python:'explanation_'+field" size=20></textarea>
	</td>
	<td valign="top">
	  <input type="radio" tal:attributes="name python:'status_'+field" value="optional" checked>
	</td>
	<td valign="top">	
	  <input type="radio" tal:attributes="name python:'status_'+field" value="required">
	</td>
	<td valign="top">
	  <textarea rows="10" cols="15" tal:attributes="name python:'values_'+field" size=20></textarea>
	</td>
      </tr>
      </table>
      <input type="submit" value="Add"><br><br>
    </form>
  </body>
</html>