added another toolbar section for datatables

This commit is contained in:
Kevin Papst
2018-01-06 10:54:26 +01:00
parent 10ad8ec034
commit 68629cc2ff
2 changed files with 23 additions and 10 deletions

View File

@@ -1,24 +1,33 @@
{% macro data_table_header(entries, form, tools) %}
{% macro data_table_header(entries, form, tools, toolsRight) %}
<div class="box data_table">
{% if form or tools %}
{% if form or tools or toolsRight %}
<div class="box-header with-border">
<div class="box-title toolbar">
{% if form %}
{% if tools %}
<div class="btn-group tools-left">
{% for icon,url in tools %}
<a class="btn btn-default" href="{{ url }}"><i class="fa fa-{{ icon }}"></i></a>
{% endfor %}
</div>
{% endif %}
{% if form %}
<div class="box-title toolbar">
{{ form_start(form) }}
{{ form_widget(form) }}
{{ form_end(form) }}
{% endif %}
</div>
<div class="box-tools">
{% if tools %}
</div>
{% endif %}
{% if toolsRight %}
<div class="box-tools">
<div class="btn-group">
{% for icon,url in tools %}
<a class="btn btn-default" href="{{ url }}"><i class="fa fa-{{ icon }}"></i></a>
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
{% endif %}
<div class="box-body no-padding">

View File

@@ -54,6 +54,10 @@ li.open .ticktac i.running{
height: 25px;
}
.box-header .tools-left {
margin-right: 10px;
}
/* ================================ SIDEBAR ================================ */
/* Used for the Sidebar UserPanel (which is deactivated right now) */