Commit bfd8a805351da7c4ba42204d30ae22e1b6cfa35e

Authored by Neil Blakey-Milner
1 parent 9320ac27

Replace static example with implementation based on fields and lookups

passed in.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3757 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/metadata/conditional/ajax_simple_update_active_lookups.smarty
1 <lookupSet> 1 <lookupSet>
2 <!-- this should only include items which are active - you don't need to pass the whole set, since we already have the full set of items --> 2 <!-- this should only include items which are active - you don't need to pass the whole set, since we already have the full set of items -->
3 - <field field_id="3">  
4 - <lookup lookup_id="1" />  
5 - <lookup lookup_id="2" /> 3 + {foreach from=$aFieldLookups key=iFieldId item=aLookups}
  4 + <field field_id="{$iFieldId}">
  5 + {foreach from=$aLookups item=iLookupId}
  6 + <lookup lookup_id="{$iLookupId}" />
  7 + {/foreach}
6 </field> 8 </field>
  9 + {/foreach}
7 </lookupSet> 10 </lookupSet>