YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Vtiger/EditViewActions.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-EditViewActions -->
    <div class="c-form__action-panel">
        {assign var=SINGLE_MODULE_NAME value='SINGLE_'|cat:$MODULE_NAME}
        <button class="btn btn-success js-form-submit-btn mr-1" type="submit" disabled="disabled" data-js="disabled" {if Vtiger_Field_Model::$tabIndexLastSeq}tabindex="{Vtiger_Field_Model::$tabIndexLastSeq}" {/if}>
            <span class="fas fa-check mr-1"></span>
            <strong>{\App\Language::translate('LBL_SAVE', $MODULE_NAME)}</strong>
        </button>
        <button class="btn btn-danger mr-2" type="reset" onclick="javascript:window.history.back();" {if Vtiger_Field_Model::$tabIndexLastSeq}tabindex="{Vtiger_Field_Model::$tabIndexLastSeq}" {/if}>
            <span class="fas fa-times mr-1"></span>
            <strong>{\App\Language::translate('LBL_CANCEL', $MODULE_NAME)}</strong>
        </button>
        {if isset($EDITVIEW_LINKS['EDIT_VIEW_HEADER'])}
            {foreach item=LINK from=$EDITVIEW_LINKS['EDIT_VIEW_HEADER']}
                {include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='editViewHeader'}
            {/foreach}
        {/if}
        {if \App\Privilege::isPermitted($MODULE_NAME, 'RecordCollector') && !empty($EDITVIEW_LINKS['EDIT_VIEW_RECORD_COLLECTOR'])}
            {include file=\App\Layout::getTemplatePath('Edit/RecordCollectors.tpl', $MODULE_NAME) RECORD_COLLECTOR=$EDITVIEW_LINKS['EDIT_VIEW_RECORD_COLLECTOR']}
        {/if}
    </div>
    </form>
    </div>
    </div>
    <!-- /tpl-Base-EditViewActions -->
{/strip}