layouts/basic/modules/Vtiger/Edit/Field/MultiEmail.tpl
{*<!-- {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
{strip}
<!-- tpl-Base-Edit-Field-MultiEmail -->
{if !empty($FIELD_MODEL->get('fieldvalue'))}
{assign var=FIELD_VALUE value=$FIELD_MODEL->getEditViewDisplayValue($FIELD_MODEL->get('fieldvalue'), $RECORD)}
{assign var=FIELD_VALUE_RAW value=$FIELD_MODEL->get('fieldvalue')}
{else}
{assign var=FIELD_VALUE_RAW value=''}
{assign var=FIELD_VALUE value=[['e' => '', 'o' => 0]]}
{/if}
{assign var=ITEMS_COUNT value=count($FIELD_VALUE)}
<div class="js-multi-email">
<input type="hidden" name="{$FIELD_MODEL->getFieldName()}" value="{\App\Purifier::encodeHtml($FIELD_VALUE_RAW)}" class="js-multi-email-value" />
<div class="row">
<div class="js-multi-email-add u-max-w-40px d-flex align-items-center col btn btn-outline-success border p-1 mb-1"
title="{\App\Language::translate('LBL_ADD', $MODULE)}">
<span class="fas fa-plus mx-auto"></span>
</div>
<div class="js-multi-email-items col pl-1 pr-0">
{foreach from=$FIELD_VALUE item=ITEM name=multiemailloop}
{include file=\App\Layout::getTemplatePath('Edit/Field/MultiEmailValue.tpl', $MODULE) ITEMS_COUNT=$ITEMS_COUNT}
{/foreach}
</div>
</div>
</div>
<!-- /tpl-Base-Edit-Field-MultiEmail -->
{/strip}