added another toolbar section for datatables
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user