Commit 9fec4914b65cd898708aa187231ba7add2c4b02b

Authored by Neil Blakey-Milner
1 parent 6a048f80

For now, hardcode that we don't show the fieldset contents if it is

conditional.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3845 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/metadata/editable_metadata_fieldsets.smarty
@@ -61,25 +61,25 @@ @@ -61,25 +61,25 @@
61 61
62 <table class="prettysw" cellpadding="0" cellspacing="0"> 62 <table class="prettysw" cellpadding="0" cellspacing="0">
63 <tbody class="conditional_target"> 63 <tbody class="conditional_target">
64 -<!--  
65 - { foreach item=oField from=$oFieldset->getFields() }  
66 - <tr>  
67 - <th>{$oField->getName()}</th>  
68 - <td>  
69 -  
70 - {php}  
71 - $oField = $this->_tpl_vars['oField'];  
72 - $sPrefix = $this->_tpl_vars['metadata_prefix'];  
73 - $sValue = $this->_tpl_vars['values'][$oField->getID()];  
74 - $this->assign('pattern',  
75 - new PatternMetadata($oField->getName(), $sPrefix . $oField->getID(), $sValue));  
76 - {/php}  
77 - {$pattern->render()}  
78 -  
79 - </td>  
80 - </tr>  
81 - { /foreach }  
82 ---> 64 + {if !$oFieldset->getIsConditional()}
  65 + { foreach item=oField from=$oFieldset->getFields() }
  66 + <tr>
  67 + <th>{$oField->getName()}</th>
  68 + <td>
  69 +
  70 + {php}
  71 + $oField = $this->_tpl_vars['oField'];
  72 + $sPrefix = $this->_tpl_vars['metadata_prefix'];
  73 + $sValue = $this->_tpl_vars['values'][$oField->getID()];
  74 + $this->assign('pattern',
  75 + new PatternMetadata($oField->getName(), $sPrefix . $oField->getID(), $sValue));
  76 + {/php}
  77 + {$pattern->render()}
  78 +
  79 + </td>
  80 + </tr>
  81 + { /foreach }
  82 + {/if}
83 </tbody> 83 </tbody>
84 </table> 84 </table>
85 </fieldset> 85 </fieldset>