Merge pull request #18466 from mattwire/scheduledJobFatalErrorHandler
[civicrm-core.git] / templates / CRM / common / TabHeader.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {* enclose all tabs and its content in a block *}
11 <div class="crm-block crm-content-block">
12 {if $tabHeader and count($tabHeader)}
13 <div id="mainTabContainer">
14 <ul>
15 {foreach from=$tabHeader key=tabName item=tabValue}
16 <li id="tab_{$tabName}" class="crm-tab-button ui-corner-all{if !$tabValue.valid} disabled{/if}{if isset($tabValue.class)} {$tabValue.class}{/if}" {$tabValue.extra}>
17 {if $tabValue.active}
18 <a href="{if !empty($tabValue.template)}#panel_{$tabName}{else}{$tabValue.link}{/if}" title="{$tabValue.title|escape}{if !$tabValue.valid} ({ts}disabled{/ts}){/if}">
19 {if !empty($tabValue.icon)}<i class="{$tabValue.icon}"></i>{/if}
20 <span>{$tabValue.title}</span>
21 {if isset($tabValue.count)}<em>{$tabValue.count}</em>{/if}
22 </a>
23 {else}
24 <span {if !$tabValue.valid} title="{ts}disabled{/ts}"{/if}>{$tabValue.title}</span>
25 {/if}
26 </li>
27 {/foreach}
28 </ul>
29 {foreach from=$tabHeader key=tabName item=tabValue}
30 {if !empty($tabValue.template)}
31 <div id="#panel_{$tabName}">
32 {include file=$tabValue.template}
33 </div>
34 {/if}
35 {/foreach}
36 </div>
37 {/if}
38 <div class="clear"></div>
39 </div> {* crm-content-block ends here *}