Ver código fonte

Style dashboard

experimental
Paweł Jedwabny 3 anos atrás
pai
commit
5cc2e1fbdb
4 arquivos alterados com 43 adições e 31 exclusões
  1. +2
    -2
      modules/Base/Box/theme/default.tpl
  2. +12
    -0
      modules/Base/Dashboard/theme/default.css
  3. +28
    -28
      modules/Base/Dashboard/theme/default.tpl
  4. +1
    -1
      modules/Utils/RecordBrowser/RecordBrowserCommon_0.php

+ 2
- 2
modules/Base/Box/theme/default.tpl Ver arquivo

@@ -46,8 +46,8 @@
</header>

<!-- -->
<div id="content">
<div id="content_body" style="top: 50px;">
<div id="content" class="my-3 my-md-5">
<div id="content_body" class="container-fluid">
{$main}
</div>
</div>


+ 12
- 0
modules/Base/Dashboard/theme/default.css Ver arquivo

@@ -3,3 +3,15 @@
width:auto;
float:none;
}

.card-options-left {
margin-left: inherit;
/*display: -ms-flexbox;*/
/*display: flex;*/
/*-ms-flex-order: 100;*/
/*order: 100;*/
margin-right: -.5rem;
/*color: #9aa0ac;*/
/*-ms-flex-item-align: center;*/
/*align-self: center;*/
}

+ 28
- 28
modules/Base/Dashboard/theme/default.tpl Ver arquivo

@@ -1,42 +1,42 @@
<div class="card ">
<div class="handle card-header clearfix">
<span class="card-title">{$caption}</span>
<div class="card">
<div class="handle card-header">

{if !empty($actions)}
<div class="pull-left action-buttons">
<div class="card-options card-options-left">
{foreach item=action from=$actions}
{$action}
{/foreach}
</div>
{/if}

<div class="pull-right action-buttons">
<div class="pull-right">
{if isset($href)}
{$__link.href.open}
<button class="btn btn-success btn-xs"><i class="fa fa-arrows-alt"></i></button>
{$__link.href.close}
{/if}
{if isset($toggle)}
{$__link.toggle.open}
<button class="btn btn-info btn-xs"><i class="fa fa-caret-square-o-down"></i></button>
{$__link.toggle.close}
{/if}
{if isset($configure)}
{$__link.configure.open}
<button class="btn btn-warning btn-xs"><i class="fa fa-cog"></i></button>
{$__link.configure.close}
{/if}
{if isset($remove)}
{$__link.remove.open}
<button class="btn btn-danger btn-xs"><i class="fa fa-times"></i></button>
{$__link.remove.close}
{/if}
</div>
<h3 class="card-title">{$caption}</h3>
<div class="card-options">
{if isset($href)}
{$__link.href.open}
<span class="card-options-fullscreen"><i class="fa fa-arrows-alt"></i></span>
{$__link.href.close}
{/if}
{if isset($toggle)}
{$__link.toggle.open}
<span class="card-options-collapse"><i class="fa fa-caret-square-o-down"></i></span>
{$__link.toggle.close}
{/if}
{if isset($configure)}
{$__link.configure.open}
<span class="card-options-collapse"><i class="fa fa-cog"></i></span>
{$__link.configure.close}
{/if}
{if isset($remove)}
{$__link.remove.open}
<span class="card-options-remove"><i class="fa fa-times"></i></span>
{$__link.remove.close}
{/if}
</div>

</div>
<div class="card-body">
{$content}
</div>
</div>
</div>

+ 1
- 1
modules/Utils/RecordBrowser/RecordBrowserCommon_0.php Ver arquivo

@@ -2889,7 +2889,7 @@ class Utils_RecordBrowserCommon extends ModuleCommon {

public static function applet_new_record_button($tab, $defaults = array()) {
if (!self::get_access($tab, 'add')) return '';
return '<a class="btn btn-success btn-xs"'.Utils_TooltipCommon::open_tag_attrs(__('New record')).' '.Utils_RecordBrowserCommon::create_new_record_href($tab,$defaults).'><i class="fa fa-plus"></i></a>';
return '<a '.Utils_TooltipCommon::open_tag_attrs(__('New record')).' '.Utils_RecordBrowserCommon::create_new_record_href($tab,$defaults).'><span class="card-options-collapse"><i class="fa fa-plus"></span></i></a>';
}

public static function get_calculated_id($tab, $field, $id) {


Carregando…
Cancelar
Salvar