YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Vtiger/Detail/HeaderButtons.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-Detail-HeaderButtons d-flex flex-nowrap align-items-end justify-content-end my-1 o-header-toggle__detail js-btn-toolbar"
        data-js="container">
        <a class="btn btn-primary d-md-none my-auto o-header-toggle__actions-btn js-header-toggle__actions-btn"
            href="#" data-js="click" role="button"
            aria-expanded="false" aria-controls="o-view-actions__container">
            <span class="fas fa-ellipsis-h fa-fw"
                title="{\App\Language::translate('LBL_ACTION_MENU')}"></span>
        </a>
        <div class="my-auto o-header-toggle__actions js-header-toggle__actions d-md-flex float-right flex-md-row flex-wrap"
            id="o-view-actions__container">
            {if isset($DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL'])}
                <div class="btn-group btn-toolbar mr-md-2 flex-md-nowrap d-block d-md-flex">
                    {foreach item=LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL']}
                        {include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='detailViewAdditional' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
                    {/foreach}
                </div>
            {/if}
            {if isset($DETAILVIEW_LINKS['DETAIL_VIEW_BASIC'])}
                <div class="btn-group btn-toolbar mr-md-2 flex-md-nowrap d-block d-md-flex">
                    {foreach item=LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_BASIC']}
                        {include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='detailViewBasic' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
                    {/foreach}
                </div>
            {/if}
            {if isset($DETAILVIEW_LINKS['DETAIL_VIEW_EXTENDED'])}
                <div class="btn-group btn-toolbar mr-md-2 flex-md-nowrap d-block d-md-flex">
                    {foreach item=LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_EXTENDED']}
                        {include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='detailViewExtended' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
                    {/foreach}
                </div>
            {/if}
        </div>
    </div>
{/strip}