Mercurial > hg > MetaDataProvider
annotate zpt/changeMetadataMapping.zpt @ 23:5ed16f971297
getDomFromPathOrUrl does not throw exception but returns None.
author | casties |
---|---|
date | Wed, 25 Jul 2012 12:53:17 +0200 |
parents | 00147a1ab4ac |
children |
rev | line source |
---|---|
1 | 1 <div tal:replace="structure here/manage_page_header">Header</div> |
2 <!-- ZOPE management tabs --> | |
3 <div tal:define="manage_tabs_message options/manage_tabs_message | nothing" | |
4 tal:replace="structure here/manage_tabs">Tabs</div> | |
5 <!-- end of ZOPE management tabs --> | |
6 <form name="form" action="manage_changeMetaDataMapping" method="post"> | |
6
00147a1ab4ac
division between MetaDataFolder and Metadata looks good now (to me :-)
casties
parents:
3
diff
changeset
|
7 <p><b>Title (=Reference Type): </b><input type="text" name="titleOfObject" tal:attributes="value here/title"></p> |
1 | 8 <ul> |
6
00147a1ab4ac
division between MetaDataFolder and Metadata looks good now (to me :-)
casties
parents:
3
diff
changeset
|
9 <li><b>Tag-Name:</b> Should be lower case only (e.g. author, number-of-pages, |
1 | 10 ...) |
11 <li><b>Label: </b> Human readable name for display purposes (Author, Number of | |
12 Pages, ...) | |
13 <li><b>Explanation:</b> Should contain a help text, what and how to enter in this | |
14 field. Can contain HTML tags. | |
15 </ul> | |
16 <p>(Leave Tag-Name empty to delete field. Add Tag-Name in empty row to add field.)</p> | |
17 | |
18 <table border=1> | |
19 <tr> | |
20 <th>Tag-name</th> | |
21 <th>Label</th> | |
22 <th>Explanation</th> | |
23 <th>Optional</th> | |
24 <th>Valuelist</th> | |
25 <th>DC-map</th> | |
26 </tr> | |
3 | 27 <tal:block tal:repeat="idx python:range(0,30)"> |
1 | 28 <tr tal:define="name python:here.getAt(here.fieldList,idx); |
29 desc python:here.fields.get(name, {'tag':'','label':'','explanation':'','status':'optional','valuelist':'','dcmap':''})"> | |
30 <td valign="top"><input type="text" | |
3 | 31 tal:attributes="name string:field_$idx; value desc/tag | nothing" size="10" /></td> |
1 | 32 <td valign="top"><input type="text" |
3 | 33 tal:attributes="name string:label_$idx; value desc/label | nothing" size="20" /></td> |
34 <td valign="top"><textarea rows="3" cols="30" | |
35 tal:attributes="name string:explanation_$idx" tal:content="desc/explanation | nothing"></textarea> | |
1 | 36 </td> |
37 <td valign="top"><input type="checkbox" | |
38 tal:attributes="name string:status_$idx; checked python:desc['status']=='optional'" | |
39 value="optional" /></td> | |
40 <td valign="top"><textarea rows="3" cols="20" | |
3 | 41 tal:attributes="name string:values_$idx" tal:content="desc/valuelist | nothing"></textarea> |
1 | 42 </td> |
43 <td valign="top"><input type="text" | |
3 | 44 tal:attributes="name string:dcmap_$idx; value desc/dcmap | nothing" size="10" /></td> |
1 | 45 </tr> |
46 </tal:block> | |
47 </table> | |
48 <input type="submit" value="Change"><br/> | |
49 </form> |