YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Vtiger/ConditionBuilder/SimplePicklist.tpl

Summary

Maintainability
Test Coverage
{*<!-- {[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-ConditionBuilder-SimplePicklist -->
    <div class="tpl-Base-ConditionBuilder-SimplePicklist">
        {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)}" multiple="multiple" data-placeholder="{\App\Language::translate('LBL_SELECT_OPTION')}">
            {foreach item=PICKLIST_VALUE key=PICKLIST_NAME from=$FIELD_MODEL->getPicklistValues()}
                <option value="{\App\Purifier::encodeHtml($PICKLIST_NAME)}" title="{\App\Purifier::encodeHtml($PICKLIST_VALUE['name'])}" {if in_array($PICKLIST_NAME, $FIELD_VALUES)}selected{/if}>
                    {\App\Purifier::encodeHtml($PICKLIST_VALUE['name'])}
                </option>
            {/foreach}
        </select>
    </div>
    <!-- /tpl-Base-ConditionBuilder-SimplePicklist -->
{/strip}