Initial commit
This commit is contained in:
91
client/res/templates/header.tpl
Normal file
91
client/res/templates/header.tpl
Normal file
@@ -0,0 +1,91 @@
|
||||
<div class="page-header-row">
|
||||
<div class="{{#if noBreakWords}} no-break-words{{/if}} page-header-column-1">
|
||||
<h3 class="header-title">{{{header}}}</h3>
|
||||
</div>
|
||||
<div class="page-header-column-2">
|
||||
<div class="header-buttons btn-group pull-right{{#if menuItemsHidden}} hidden{{/if}}">
|
||||
{{#each items.buttons}}
|
||||
<a
|
||||
{{#if link}}href="{{link}}"{{else}}role="button"{{/if}}
|
||||
tabindex="0"
|
||||
class="btn btn-{{#if style}}{{style}}{{else}}default{{/if}} btn-xs-wide main-header-manu-action action{{#if disabled}} disabled{{/if}}{{#if hidden}} hidden{{/if}}{{#if className}} {{className}}{{/if}}"
|
||||
data-name="{{name}}"
|
||||
data-action="{{action}}"
|
||||
{{#each data}} data-{{hyphen @key}}="{{./this}}"{{/each}}
|
||||
{{#if title}}title="{{title}}"{{/if}}
|
||||
>
|
||||
{{#if iconHtml~}}
|
||||
{{{iconHtml}}}
|
||||
{{~else~}}
|
||||
{{#if iconClass}}<span class="{{iconClass}}"></span>{{/if~}}
|
||||
{{~/if~}}
|
||||
<span>{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label scope=../scope}}{{/if}}{{/if}}</span>
|
||||
</a>
|
||||
{{/each}}
|
||||
|
||||
{{#if items.actions}}
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
{{translate 'Actions'}} <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
{{#each items.actions}}
|
||||
<li class="{{#if hidden}}hidden{{/if}}">
|
||||
<a
|
||||
{{#if link}}href="{{link}}"{{else}}role="button"{{/if}}
|
||||
tabindex="0"
|
||||
class="action main-header-manu-action{{#if disabled}} disabled{{/if}}"
|
||||
data-name="{{name}}"
|
||||
data-action="{{action}}"
|
||||
{{#each data}} data-{{@key}}="{{./this}}"{{/each}}
|
||||
{{#if title}}title="{{title}}"{{/if}}
|
||||
>{{#if iconHtml}}{{{iconHtml}}}{{/if}}
|
||||
{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label scope=../scope}}{{/if}}{{/if}}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if items.dropdown}}
|
||||
<div class="btn-group dropdown-group{{#unless hasVisibleDropdownItems}} hidden{{/unless}}" role="group">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-default dropdown-toggle{{#unless hasVisibleDropdownItems}} hidden{{/unless}}"
|
||||
data-toggle="dropdown"
|
||||
>
|
||||
<span class="fas fa-ellipsis-h"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
{{#each items.dropdown}}
|
||||
{{#if this}}
|
||||
<li class="{{#if hidden}}hidden{{/if}}">
|
||||
<a
|
||||
{{#if link}}href="{{link}}"{{else}}role="button"{{/if}}
|
||||
tabindex="0"
|
||||
class="action main-header-manu-action{{#if disabled}} disabled{{/if}}"
|
||||
data-name="{{name}}"
|
||||
data-action="{{action}}"
|
||||
{{#each data}} data-{{@key}}="{{./this}}"{{/each}}
|
||||
>
|
||||
{{#if iconHtml}}
|
||||
{{{iconHtml}}}
|
||||
{{else}}
|
||||
{{#if iconClass}}
|
||||
<span class="{{iconClass}}"></span>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label scope=../scope}}{{/if}}{{/if}}</a></li>
|
||||
{{else}}
|
||||
{{#unless @first}}
|
||||
{{#unless @last}}
|
||||
<li class="divider"></li>
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user