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">
|
<div class="box data_table">
|
||||||
{% if form or tools %}
|
{% if form or tools or toolsRight %}
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<div class="box-title toolbar">
|
{% if tools %}
|
||||||
{% if form %}
|
<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_start(form) }}
|
||||||
{{ form_widget(form) }}
|
{{ form_widget(form) }}
|
||||||
{{ form_end(form) }}
|
{{ form_end(form) }}
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
<div class="box-tools">
|
|
||||||
{% if tools %}
|
{% if toolsRight %}
|
||||||
|
<div class="box-tools">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
{% for icon,url in tools %}
|
{% for icon,url in tools %}
|
||||||
<a class="btn btn-default" href="{{ url }}"><i class="fa fa-{{ icon }}"></i></a>
|
<a class="btn btn-default" href="{{ url }}"><i class="fa fa-{{ icon }}"></i></a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="box-body no-padding">
|
<div class="box-body no-padding">
|
||||||
|
|||||||
@@ -54,6 +54,10 @@ li.open .ticktac i.running{
|
|||||||
height: 25px;
|
height: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.box-header .tools-left {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
/* ================================ SIDEBAR ================================ */
|
/* ================================ SIDEBAR ================================ */
|
||||||
|
|
||||||
/* Used for the Sidebar UserPanel (which is deactivated right now) */
|
/* Used for the Sidebar UserPanel (which is deactivated right now) */
|
||||||
|
|||||||
Reference in New Issue
Block a user