File:  [Repository] / OSA_system2 / zpt / changeMetadataMapping.zpt
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Thu Mar 3 20:41:00 2005 UTC (19 years, 4 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
major new version

    1: <html>
    2:   <body>
    3:     <form name="form" action="changeMetadataMapping" method="post">
    4:       <b> Title (=Reference Type): </b><input type="text" name="titleOfObject" tal:attributes="value here/title"><br><br>
    5:       <ul>
    6: 	<li> <b>Tag-Name:</b> Should be lower case only, must only contain letters A-z, Numbers or _ (author, number_of_pages, ...)
    7: 	<li> <b>Label: </b> Human readable name for displaying purposes (Author, Number of Pages, ...)
    8:         <li> <b>Explanation:</b> Should contain a help text, what and how to enter in this field. Can contain HTML tags.
    9:      </ul>
   10:       <table border=1>
   11: 	<tr>
   12: 	  <td>
   13: 	    Generic Name
   14: 	  </td>
   15: 	  <td>
   16: 	    <b>Tag-Name</b>
   17: 	  </td>
   18: 	  <td>
   19: 	    <b>Label</b>
   20: 	  </td>
   21: 	  <td>
   22: 	    <b>Explanation</b>
   23: 	  </td>
   24: 	  <td>	    
   25: 	    <b>Optional</b>
   26: 	  </td>
   27:   	  <td>	  
   28: 	    <b>Required</b>
   29: 	  </td>
   30:   	  <td>	  
   31: 	    <b>Valuelist</b>
   32: 	  </td>
   33: 	
   34: 	</tr>
   35: 	<span tal:omit-tag=""  tal:repeat="field here/fieldList">
   36: 	  <tr tal:define="value python:here.getValue(field); name field">
   37: 	    <td valign="top">
   38: 	      <b tal:content="field"/>
   39: 	   </td>
   40: 	    <td valign="top">
   41: 	      <input type="text" tal:attributes="name field;value python:value[0]" size=20>
   42: 	   </td>
   43: 	    <td valign="top">
   44: 	      <input type="text" tal:attributes="name python:'label_'+field;value python:value[1]" size=20>
   45: 	   </td>
   46: 	    <td valign="top">
   47: 	      <textarea rows="10" cols="40" tal:attributes="name python:'explanation_'+field" tal:content="python:value[2]" size=20></textarea>
   48: 	   </td>
   49: 	   <tal:block tal:condition="python:value[3]=='optional'">
   50: 	   	   <td valign="top">
   51: 	      	   <input type="radio" tal:attributes="name python:'status_'+field" value="optional" checked>
   52: 	   	   </td>
   53: 	   	   <td valign="top">	
   54: 	      	   <input type="radio" tal:attributes="name python:'status_'+field" value="required">
   55: 	   	   </td>
   56:            </tal:block>
   57: 	   <tal:block tal:condition="not:python:value[3]=='optional'">
   58: 	   	   <td valign="top">
   59: 	      	   <input type="radio" tal:attributes="name python:'status_'+field" value="optional">
   60: 	   	   </td>
   61: 	   	   <td valign="top">	
   62: 	      	   <input type="radio" tal:attributes="name python:'status_'+field" value="required" checked>
   63: 	   	   </td>
   64:            </tal:block>
   65: 
   66: 	   <td valign="top">
   67: 	      <textarea rows="10" cols="15" tal:attributes="name python:'values_'+field" size=20 tal:content="python:value[4]"></textarea>
   68: 	   </td>
   69: 	 </tr>
   70: 	</span>
   71: 	</table>
   72:       <input type="submit" value="Change"><br><br>
   73:     </form>
   74:   </body>
   75: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>