view for dms keyword now displays children

This commit is contained in:
David Convent 2013-01-24 15:05:51 +01:00
parent 2b10d47ab0
commit e12a479aa6
2 changed files with 15 additions and 3 deletions

View File

@ -22,7 +22,7 @@
<browser:page
for="collective.dms.thesaurus.dmskeyword.IDmsKeyword"
name="dmskeyword.view"
class="plone.dexterity.browser.view.DefaultView"
class="collective.dms.thesaurus.browser.view.DmsKeywordView"
template="dmskeyword_view.pt"
permission="zope2.View"
/>

View File

@ -39,10 +39,22 @@
</div>
<div id="dmskeywords-navigation-right">
<div class="field">
<div class="field"
tal:define="rel_widget python:view.widgets.get('related')">
<label tal:content="string:NT (Narrower Term)" />
<br />
<div tal:content="string:content here" />
<span id="" class=""
tal:attributes="id string:form-widgets-children;
class string:contenttree-widget relatedthesauruskeywords-field;
"><tal:block
tal:repeat="value view/children"
><a class="selected-option"
href="#"
tal:content="python:value[1]"
tal:attributes="href python:value[0]"
/><tal:block condition="not:repeat/value/end">, </tal:block
></tal:block
></span>
</div>
</div>
</div>