|
@@ -64,45 +64,51 @@
|
|
|
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
|
|
background: #fff none repeat scroll 0 0;
|
|
|
}
|
|
|
+ .inactive {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .active {
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
</style>
|
|
|
<div class="col-xs-12 col-md-12">
|
|
|
<div class="box">
|
|
|
<form id="filter_form" action="{{ url('entity_audit') }}" method="POST">
|
|
|
<fieldset class="filter_legend">
|
|
|
- <legend class="filter_legend inactive">{{ 'FILTROS'|trans({}, 'AuditBundle') }}</legend>
|
|
|
- <div class="filter_container {%if data %}inactive{% endif %}" style="display:block; padding: 0 15px 15px 15px;">
|
|
|
+ <legend class="filter_legend"> <i id="filter-icon" class="glyphicon glyphicon-chevron-up btn-xs"></i> {{ 'FILTROS'|trans({}, 'AuditBundle') }}</legend>
|
|
|
+ <div class="filter_container {% if data|length == 0 %}inactive{% endif %}" style="padding: 0 15px 15px 15px;">
|
|
|
<table class="bordered-table">
|
|
|
<tbody>
|
|
|
- <tr class="filter inactive">
|
|
|
+ <tr class="filter">
|
|
|
<td class="filter-title" width="200">{{ 'Entidad'|trans({}, 'AuditBundle') }}:</td>
|
|
|
<td class="filter-value form-inline">
|
|
|
{{ form_widget(form.entity) }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="filter inactive">
|
|
|
+ <tr class="filter">
|
|
|
<td class="filter-title" width="200">{{ 'Tipo de Revisión'|trans({}, 'AuditBundle') }}:</td>
|
|
|
<td class="filter-value form-inline">
|
|
|
{{ form_widget(form.types) }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="filter inactive">
|
|
|
+ <tr class="filter">
|
|
|
<td class="filter-title" width="200">{{ 'ID del Elemento'|trans({}, 'AuditBundle') }}:</td>
|
|
|
<td class="filter-value form-inline">
|
|
|
{{ form_widget(form.idx) }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="filter inactive">
|
|
|
+ <tr class="filter">
|
|
|
<td class="filter-title" width="200">{{ 'Usuario'|trans({}, 'AuditBundle') }}:</td>
|
|
|
<td class="filter-value form-inline">
|
|
|
{{ form_widget(form.users) }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="filter inactive">
|
|
|
+ <tr class="filter">
|
|
|
<td class="filter-title">{{ 'Fecha Desde'|trans({}, 'AuditBundle') }}:</td> <td class="filter-value form-inline">
|
|
|
{{ form_widget(form.dateFrom) }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="filter inactive">
|
|
|
+ <tr class="filter">
|
|
|
<td class="filter-title">{{ 'Fecha Hasta'|trans({}, 'AuditBundle') }}:</td>
|
|
|
<td class="filter-value">
|
|
|
{{ form_widget(form.dateTo) }}
|
|
@@ -114,7 +120,7 @@
|
|
|
{{ form_widget(form.searchValue) }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="filter inactive">
|
|
|
+ <tr class="filter">
|
|
|
<td class="filter-title" width="200">{{ 'Resultados por Página'|trans({}, 'AuditBundle') }}:</td>
|
|
|
<td class="filter-value form-inline">
|
|
|
{{ form_widget(form.resxpage) }}
|
|
@@ -216,6 +222,20 @@
|
|
|
$('.datepicker').datepicker({
|
|
|
dateFormat: 'dd/mm/yy'
|
|
|
});
|
|
|
+ $('#filter-icon').on('click', function() {
|
|
|
+ var filter_container = $('.filter_container');
|
|
|
+ if (filter_container.hasClass('inactive')) {
|
|
|
+ filter_container.removeClass('inactive');
|
|
|
+ filter_container.addClass('active');
|
|
|
+ $(this).removeClass('glyphicon-chevron-up');
|
|
|
+ $(this).addClass('glyphicon-chevron-down');
|
|
|
+ } else {
|
|
|
+ filter_container.removeClass('active');
|
|
|
+ filter_container.addClass('inactive');
|
|
|
+ $(this).removeClass('glyphicon-chevron-down');
|
|
|
+ $(this).addClass('glyphicon-chevron-up');
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
function SetPage(page) {
|