YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Vtiger/ConditionBuilder/Theme.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}
    <div class="tpl-Base-ConditionBuilder-Theme">
        {assign var=PICKLIST_VALUES value=Vtiger_Theme::getAllSkins()}
        {assign var=FIELD_VALUES value=explode('##', $VALUE)}
        <select class="js-theme-field select2 form-control js-condition-builder-value"
            title="{\App\Language::translate($FIELD_MODEL->getFieldLabel(), $MODULE)}"
            multiple="multiple" data-js="val" data-placeholder="{\App\Language::translate('LBL_SELECT_OPTION')}">
            {foreach item=PICKLIST_VALUE key=PICKLIST_NAME from=$PICKLIST_VALUES}
                <option class="u-bg-default u-bg-{$PICKLIST_NAME} u-hover-bold"
                    value="{\App\Purifier::encodeHtml($PICKLIST_NAME)}"
                    {if in_array($PICKLIST_NAME, $FIELD_VALUES)} selected {/if}>{\App\Purifier::encodeHtml(\App\Utils::mbUcfirst($PICKLIST_NAME))}</option>
            {/foreach}
        </select>
    </div>
{/strip}