{*+********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.1 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ************************************************************************************} {* modules/Settings/PickListDependency/views/Edit.php *} {* START YOUR IMPLEMENTATION FROM BELOW. Use {debug} for information *} {strip}
 {vtranslate('LBL_CONFIGURE_DEPENDENCY_INFO', $QUALIFIED_MODULE)}   {vtranslate('LBL_MORE', $QUALIFIED_MODULE)}..

  • {vtranslate('LBL_CONFIGURE_DEPENDENCY_HELP_1', $QUALIFIED_MODULE)}

  • {vtranslate('LBL_CONFIGURE_DEPENDENCY_HELP_2', $QUALIFIED_MODULE)}

  • {vtranslate('LBL_CONFIGURE_DEPENDENCY_HELP_3', $QUALIFIED_MODULE)}  {vtranslate('Selected Values', $QUALIFIED_MODULE)}


{assign var=SELECTED_MODULE value=$RECORD_MODEL->get('sourceModule')} {assign var=SOURCE_FIELD value=$RECORD_MODEL->get('sourcefield')} {assign var=MAPPED_SOURCE_PICKLIST_VALUES value=array()} {assign var=MAPPED_TARGET_PICKLIST_VALUES value=[]} {foreach item=MAPPING from=$MAPPED_VALUES} {assign var=value value=array_push($MAPPED_SOURCE_PICKLIST_VALUES, $MAPPING['sourcevalue'])} {$MAPPED_TARGET_PICKLIST_VALUES[$MAPPING['sourcevalue']] = $MAPPING['targetvalues']} {/foreach} {assign var=DECODED_MAPPED_SOURCE_PICKLIST_VALUES value=array_map('decode_html', $MAPPED_SOURCE_PICKLIST_VALUES)}
{foreach item=TARGET_VALUE from=$TARGET_PICKLIST_VALUES name=targetValuesLoop} {if $smarty.foreach.targetValuesLoop.index eq 0} {else} {/if} {/foreach}
{$RECORD_MODEL->getSourceFieldLabel()}
{$RECORD_MODEL->getTargetFieldLabel()}
 
{foreach key=SOURCE_PICKLIST_VALUE item=TRANSLATED_SOURCE_PICKLIST_VALUE from=$SOURCE_PICKLIST_VALUES} {/foreach} {foreach key=TARGET_VALUE item=TRANSLATED_TARGET_VALUE from=$TARGET_PICKLIST_VALUES} {foreach key=SOURCE_PICKLIST_VALUE item=TRANSLATED_SOURCE_PICKLIST_VALUE from=$SOURCE_PICKLIST_VALUES} {assign var=targetValues value=$MAPPED_TARGET_PICKLIST_VALUES[$SAFEHTML_SOURCE_PICKLIST_VALUES[$SOURCE_PICKLIST_VALUE]]} {assign var=IS_SELECTED value=false} {if empty($targetValues) || in_array($TARGET_VALUE, $targetValues)} {assign var=IS_SELECTED value=true} {/if} {/foreach} {/foreach}
{$TRANSLATED_SOURCE_PICKLIST_VALUE}
{if $IS_SELECTED} {/if} {$TRANSLATED_TARGET_VALUE}
{/strip}