YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Settings/Workflows/Tasks/VTAutoAssign.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}
    {assign var=ENTRIES value=\App\AutoAssign::getInstancesByModule($WORKFLOW_MODEL->get('module_name'), \App\AutoAssign::MODE_WORKFLOW)}
    {assign var=AUTOASSIGN_TEMPLATE value=''}
    {if isset($TASK_OBJECT->template)}
        {assign var=AUTOASSIGN_TEMPLATE value=$TASK_OBJECT->template}
    {/if}
    <div class="row">
        <label class="col-md-4 col-form-label">{\App\Language::translate('LBL_SELECT_TEMPLATE', $QUALIFIED_MODULE)}</label>
        <div class="col-md-5">
            <select class="select2 form-control" name="template" data-validation-engine="validate[required]"
                data-select="allowClear"
                data-placeholder="{\App\Language::translate('LBL_NONE', $QUALIFIED_MODULE)}">
                <optgroup class="p-0">
                    <option value="">{\App\Language::translate('LBL_NONE', $QUALIFIED_MODULE)}</option>
                </optgroup>
                {foreach from=$ENTRIES key=KEY item=ITEM}
                    <option value="{$KEY}" {if $AUTOASSIGN_TEMPLATE eq $KEY} selected{/if}>{$ITEM->getName()}</option>
                {/foreach}
            </select>
        </div>
    </div>
{/strip}