YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Settings/Mail/ListViewHeader.tpl

Summary

Maintainability
Test Coverage
{strip}
    {*<!-- {[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]} -->*}
    <div class="">
        <div class='widget_header row '>
            <div class="col-12">
                {include file=\App\Layout::getTemplatePath('BreadCrumbs.tpl', $QUALIFIED_MODULE)}
            </div>
        </div>
        <div class="listViewActionsDiv row">
            <div class="col-md-8 btn-toolbar">
                {if !empty($LISTVIEW_LINKS['LISTVIEWBASIC'])}
                    {foreach item=LINK from=$LISTVIEW_LINKS['LISTVIEWBASIC']}
                        {if $LINK->getLabel()}
                            {assign var="LABEL" value=\App\Language::translate($LINK->getLabel(), $QUALIFIED_MODULE)}
                        {/if}
                        <button type="button" title="{if $LINK->getLabel()}{$LABEL}{/if}"
                            class="btn{if $LINK->getClassName()} {$LINK->getClassName()}{else} btn-light{/if}"
                            {if $LINK->getUrl()}
                                {if stripos($LINK->getUrl(), 'javascript:')===0} onclick='{substr($LINK->getUrl(), strlen("javascript:"))};'
                                {else} onclick='window.location.href = "{$LINK->getUrl()}"'
                                {/if}
                            {/if}
                            {if $LINK->get('linkdata') neq '' && is_array($LINK->get('linkdata'))}
                                {foreach from=$LINK->get('linkdata') key=NAME item=DATA}
                                    data-{$NAME}="{$DATA}"
                                {/foreach}
                            {/if}>
                            {if $LINK->get('linkicon')}
                                <span class="{$LINK->get('linkicon')}"></span>
                            {/if}
                            {if $LINK->getLabel() && $LINK->get('showLabel') eq 1}
                                &nbsp;
                                <strong>{$LABEL}</strong>
                            {/if}
                        </button>
                    {/foreach}
                {/if}
            </div>
            <div class="col-md-4">
                {include file=\App\Layout::getTemplatePath('ListViewActions.tpl', $QUALIFIED_MODULE)}
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="listViewContentDiv listViewPageDiv" id="listViewContents">
{/strip}