{% if date_start or date_end or search or filter_predefined or canal %}
Filtros:
{% endif %}
{% if (date_start or date_end) and filter_predefined in 'create,publish,closing' %}
{% if date_start == date_end %}
El {{ dateFormat(date_start) }}
{% else %}
Entre el {{ dateFormat(date_start) }} y el {{ dateFormat(date_end) }}
{% endif %}
{% endif %}
{% if search %}
{{ search }}
{% endif %}
{% if filter_predefined is not empty %}
{{ filters[filter_predefined] }}
{% endif %}
{{ numItems }} {{ numItems == 1 ? 'registro seleccionado' : 'registros seleccionados' }}
{{ paginador | raw }}
{% for row in items %}
{% if loop.first %}
|
{% for k,v in row %}
{% if k not in noShow %}
{{ k | replace({"_":" "}) | capitalize }}
|
{% endif %}
{% endfor %}
|
|
{% endif %}
{{ loop.first ? '' : '' }}
| {{ loop.index + ((page-1) * limit) }} |
{% for k,v in row %}
{% if k not in noShow %}
{% if k in 'create_at' %}
{{ v | date('d-m-Y H:i') }}
{% elseif k in 'publish_at,closing_at' %}
{{ v | date('d-m-Y') }}
{% elseif k in 'visibility' %}
{{ v == 1 ? 'Público' : 'Privado' }}
{% elseif k in 'state' %}
{{ v == 1 ? 'Activado' : 'Desactivado' }}
{% elseif k in 'title_es,title_en,slug_es,slug_en' %}
{{ v }}
{% elseif k in 'description_es,description_en' %}
{{ v }}
{% elseif k in 'categories' %}
{{ v | replace({"-":" "}) | capitalize }}
{% else %}
{{ v }}
{% endif %}
|
{% endif %}
{% endfor %}
Editar
|
Eliminar
|
{{ loop.last ? '' : '' }}
{% endfor %}
{{ paginador | raw }}
{% endblock oneOne %}
{% block javascript %}
{{ parent() }}
{% endblock javascript %}