Commit 73a4d2a32437bfe50d40d5547eb0fceeff7a3fc1

Authored by Neil Blakey-Milner
1 parent e2de44db

Replace static templates with behaviour based on passed-in values.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3796 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/metadata/conditional/ajax_complex_get_active_fields.smarty
1 1 <fieldList>
2   - <field value="2" />
3   - <field value="4" />
  2 +{ foreach from=$aFieldIds item=iFieldId}
  3 + <field value="{$iFieldId}" />
  4 +{/foreach}
4 5 </fieldList>
... ...
templates/ktcore/metadata/conditional/ajax_complex_get_behaviour_list.smarty
1 1 <behaviourList>
2   - <behaviour value="10" label="Changed Behaviour 1"/>
3   - <behaviour value="11" label="Changed Behaviour 2"/>
  2 +{foreach from=$aBehaviours item=oBehaviour}
  3 + <behaviour value="{$oBehaviour->getId()}" label="{$oBehaviour->getName()|escape}" />
  4 +{/foreach}
4 5 </behaviourList>
... ...
templates/ktcore/metadata/conditional/ajax_complex_get_item_list.smarty
1 1 <itemList>
2   - <item value="-1" label="Changed 1"/>
3   - <item value="-2" label="Changed 2"/>
  2 +{ foreach from=$values key=id item=label }
  3 + <item value="{$id}" label="{$label}"/>
  4 +{/foreach}
4 5 </itemList>
... ...