|
@@ -70,12 +70,15 @@
|
|
.active {
|
|
.active {
|
|
display: block;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
+ .glyphicon-chevron-down, .glyphicon-chevron-up {
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|
|
<div class="col-xs-12 col-md-12">
|
|
<div class="col-xs-12 col-md-12">
|
|
<div class="box">
|
|
<div class="box">
|
|
<form id="filter_form" action="{{ url('entity_audit') }}" method="POST">
|
|
<form id="filter_form" action="{{ url('entity_audit') }}" method="POST">
|
|
<fieldset class="filter_legend">
|
|
<fieldset class="filter_legend">
|
|
- <legend class="filter_legend"> <i id="filter-icon" class="glyphicon glyphicon-chevron-up btn-xs"></i> {{ 'FILTROS'|trans({}, 'AuditBundle') }}</legend>
|
|
|
|
|
|
+ <legend class="filter_legend"> <i id="filter-icon" class="glyphicon glyphicon-chevron-{% if data|length == 0 and not form.vars.submitted %}down{% else %}up{% endif %} btn-xs" title="{{ 'audit.filter.show_hide'|trans({}, 'AuditBundle') }}"></i> {{ 'FILTROS'|trans({}, 'AuditBundle') }}</legend>
|
|
<div class="filter_container {% if data|length == 0 and not form.vars.submitted %}inactive{% endif %}" style="padding: 0 15px 15px 15px;">
|
|
<div class="filter_container {% if data|length == 0 and not form.vars.submitted %}inactive{% endif %}" style="padding: 0 15px 15px 15px;">
|
|
<table class="bordered-table">
|
|
<table class="bordered-table">
|
|
<tbody>
|
|
<tbody>
|
|
@@ -227,13 +230,13 @@
|
|
if (filter_container.hasClass('inactive')) {
|
|
if (filter_container.hasClass('inactive')) {
|
|
filter_container.removeClass('inactive');
|
|
filter_container.removeClass('inactive');
|
|
filter_container.addClass('active');
|
|
filter_container.addClass('active');
|
|
- $(this).removeClass('glyphicon-chevron-up');
|
|
|
|
- $(this).addClass('glyphicon-chevron-down');
|
|
|
|
|
|
+ $(this).removeClass('glyphicon-chevron-down');
|
|
|
|
+ $(this).addClass('glyphicon-chevron-up');
|
|
} else {
|
|
} else {
|
|
filter_container.removeClass('active');
|
|
filter_container.removeClass('active');
|
|
filter_container.addClass('inactive');
|
|
filter_container.addClass('inactive');
|
|
- $(this).removeClass('glyphicon-chevron-down');
|
|
|
|
- $(this).addClass('glyphicon-chevron-up');
|
|
|
|
|
|
+ $(this).removeClass('glyphicon-chevron-up');
|
|
|
|
+ $(this).addClass('glyphicon-chevron-down');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|