<html>
<body>
<form name="form" action="changeMetadataMapping" method="post">
<b> Title (=Reference Type): </b><input type="text" name="titleOfObject" tal:attributes="value here/title"><br><br>
<ul>
<li> <b>Tag-Name:</b> Should be lower case only, must only contain letters A-z, Numbers or _ (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>
<td>
Generic Name
</td>
<td>
<b>Tag-Name</b>
</td>
<td>
<b>Label</b>
</td>
<td>
<b>Explanation</b>
</td>
<td>
<b>Optional</b>
</td>
<td>
<b>Required</b>
</td>
<td>
<b>Valuelist</b>
</td>
</tr>
<span tal:omit-tag="" tal:repeat="field here/fieldList">
<tr tal:define="value python:here.getValue(field); name field">
<td valign="top">
<b tal:content="field"/>
</td>
<td valign="top">
<input type="text" tal:attributes="name field;value python:value[0]" size=20>
</td>
<td valign="top">
<input type="text" tal:attributes="name python:'label_'+field;value python:value[1]" size=20>
</td>
<td valign="top">
<textarea rows="10" cols="40" tal:attributes="name python:'explanation_'+field" tal:content="python:value[2]" size=20></textarea>
</td>
<tal:block tal:condition="python:value[3]=='optional'">
<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>
</tal:block>
<tal:block tal:condition="not:python:value[3]=='optional'">
<td valign="top">
<input type="radio" tal:attributes="name python:'status_'+field" value="optional">
</td>
<td valign="top">
<input type="radio" tal:attributes="name python:'status_'+field" value="required" checked>
</td>
</tal:block>
<td valign="top">
<textarea rows="10" cols="15" tal:attributes="name python:'values_'+field" size=20 tal:content="python:value[4]"></textarea>
</td>
</tr>
</span>
</table>
<input type="submit" value="Change"><br><br>
</form>
</body>
</html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>