layouts/basic/modules/MailIntegration/Iframe/HeaderMailRelationAdder.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-MailIntegration-Iframe-HeaderMailRelationAdder -->
<div class="input-group input-group-sm my-1">
<select class="select2 form-control js-modules" data-js="change">
{foreach key=MODULE_LIST item=PERMITTED from=$MODULES name=MODULES_SELECT}
{if $smarty.foreach.MODULES_SELECT.first}
{assign var=IS_EDIT_PERMITTED value=$PERMITTED}
{/if}
<option value="{$MODULE_LIST}" data-add-record="{$PERMITTED}">{\App\Language::translate($MODULE_LIST, $MODULE_LIST)}</option>
{/foreach}
</select>
<div class="input-group-append">
<button class="btn btn-light js-add-record js-popover-tooltip mr-3px{if !$IS_EDIT_PERMITTED} d-none{/if}" data-js="popover | click" data-content="{\App\Language::translate('LBL_ADD_RECORD', $MODULE)}" data-js="click">
<span class="fas fa-plus"></span>
</button>
<button class="btn btn-light js-select-record js-popover-tooltip" data-js="popover | click" data-content="{\App\Language::translate('LBL_SELECT_RECORD', $MODULE)}" data-js="click">
<span class="fas fa-search"></span>
</button>
</div>
</div>
<!-- /tpl-MailIntegration-Iframe-HeaderMailRelationAdder -->
{/strip}