Browse Source

Move action bar to header

experimental
Paweł Jedwabny 3 years ago
parent
commit
f261f2ff8f
2 changed files with 27 additions and 47 deletions
  1. +26
    -30
      modules/Base/ActionBar/theme/default.tpl
  2. +1
    -17
      modules/Base/Box/theme/default.tpl

+ 26
- 30
modules/Base/ActionBar/theme/default.tpl View File

@@ -1,32 +1,28 @@
<div id="Base_ActionBar">
<div class="pull-left">
{foreach item=i from=$launcher_left}
{$i.open}
<div class="btn btn-default">
{if $i.icon_url}
<img src="{$i.icon_url}" style="height:2em">
{else}
<i class="fa fa-{$i.icon} fa-2x"></i>
{/if}
<div>{$i.label}</div>
</div>
{$i.close}
{/foreach}

{foreach item=i from=$icons}
{$i.open}
<div class="btn btn-default" helpID="{$i.helpID}">
{if $i.icon_url}
<img src="{$i.icon_url}" style="height:3em">
{else}
<i class="fa fa-{$i.icon} fa-3x"></i>
{/if}
<div>{$i.label}</div>
</div>
{$i.close}
{/foreach}
</div>


</div>
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group btn-group-sm mr-2" role="group" aria-label="First group">
{foreach item=i from=$launcher_left}
{$i.open}
<button class="btn btn-sm btn-secondary">
{if $i.icon}

<i class="fa fa-{$i.icon} fa-2x"></i>
{/if}
{$i.label}
</button>
{$i.close}
{/foreach}
</div>
<div class="btn-group btn-group-sm mr-2" role="group" aria-label="Second group">
{foreach item=i from=$icons}
{$i.open}
<button class="btn btn-sm btn-secondary" helpID="{$i.helpID}">
{if $i.icon}
<i class="fa fa-{$i.icon} fa-3x"></i>
{/if}
{$i.label}
</button>
{$i.close}
{/foreach}
</div>
</div>

+ 1
- 17
modules/Base/Box/theme/default.tpl View File

@@ -11,6 +11,7 @@
{$logo}
<div class="nav-item d-none d-md-flex"><a class="btn btn-sm btn-secondary" title="{$home.label|escape:html|escape:quotes}" {$home.href}><i class="fa fa-home"></i> {$home.label}</a></div>
<div class="nav-item d-none d-md-flex"><div id="module-indicator">{if $moduleindicator}{$moduleindicator}{else}&nbsp;{/if}</div></div>
<div class="nav-item d-none d-md-flex">{$actionbar}</div>
<div class="d-flex order-lg-2 ml-auto">
<div class="nav-item d-none d-md-flex">
{if isset($donate)}
@@ -44,23 +45,6 @@
</div>
</header>



<header class="row">
<div class="col-lg-2 col-xs-12 col-sm-6">
</div>
<div class="col-lg-3 col-sm-6 col-xs-12 pull-right">
</div>
<div class="col-lg-7 col-xs-12">
<div class="card ">
<div class="card-header vertical-align-middle">
</div>
<div class="card-body">
{$actionbar}
</div>
</div>
</div>
</header>
<!-- -->
<div id="content">
<div id="content_body" style="top: 50px;">


Loading…
Cancel
Save