layouts/basic/modules/Vtiger/ConditionBuilder/UserRole.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}
<div class="tpl-Base-ConditionBuilder-UserRole picklistSearchField">
{assign var=FIELD_VALUES value=explode('##', $VALUE)}
<select class="js-picklist-field select2 form-control js-condition-builder-value"
title="{\App\Language::translate($FIELD_MODEL->getFieldLabel(), $MODULE)}"
name="{$FIELD_MODEL->getFieldName()}" data-js="val" multiple="multiple">
<optgroup class="p-0">
<option value="">{\App\Language::translate('LBL_SELECT_OPTION')}</option>
</optgroup>
{foreach key=PICKLIST_VALUE item=PICKLIST_NAME from=$FIELD_MODEL->getPicklistValues()}
<option value="{\App\Purifier::encodeHtml($PICKLIST_VALUE)}" {if in_array($PICKLIST_VALUE, $FIELD_VALUES)} selected {/if}>
{\App\Purifier::encodeHtml($PICKLIST_NAME)}
</option>
{/foreach}
</select>
</div>
{/strip}