From 98e741465553e6cd1b1bf51a13169372e335aadc Mon Sep 17 00:00:00 2001 From: nbm Date: Fri, 7 Oct 2005 15:24:35 +0000 Subject: [PATCH] Allow setting of master field, and don't allow ordering unless the master field is set. --- templates/ktcore/metadata/conditional/manageConditional.smarty | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+), 0 deletions(-) diff --git a/templates/ktcore/metadata/conditional/manageConditional.smarty b/templates/ktcore/metadata/conditional/manageConditional.smarty index a1e298e..3b87547 100644 --- a/templates/ktcore/metadata/conditional/manageConditional.smarty +++ b/templates/ktcore/metadata/conditional/manageConditional.smarty @@ -1,5 +1,31 @@

Manage conditional fieldset

+

Master field

+ +{if !$oMasterField} +No master field is set, please select the master field: + +
+ + + +{entity_select entities=$oFieldset->getFields() name="fFieldId"} + +
+ +{else} + +
+ + + +{entity_select entities=$oFieldset->getFields() name="fFieldId" selected=$oMasterField->getId()} + +
+ +

Changing the master field set will remove all existing field +ordering!

+

Field ordering

{if $aFieldOrders} @@ -20,6 +46,7 @@ affects the values available in {/if} +{ if $free_fields }

Order fields

@@ -36,3 +63,6 @@ are conditional on the values of this field:
+{/if} + +{/if} -- libgit2 0.21.4