{% extends "@index/base.html.twig" %} {% set page_id = 'backend' %} {% set noindex = true %} {% set oneColumn = true %} {% set page = page > 0 ? page : 1 %} {% set tooltips = { 'routename':'Identificador único para el Router. Se usa internamente para vincular la ruta con el registro en la base de datos. Además se puede usar internamente en el framework para llamar a la url mediante {{ url("page-1") }} y para crear plantillas específicas para la página en cuestión, por ejemplo: page-1.html.twig', 'category_id':'Si este campo, category_name y category_family tienen contenido, indica que hay una categoría enlazando con la url de esta página', 'template':'Por defecto, sino se ha creado una plantilla, la página usa la plantilla genérica page.html.twig. No obstante, se puede usar una plantilla específica para mejorar las prestaciones de manera independiente' } %} {% set filters = { 'today':'Hoy', 'yesterday':'Ayer', 'last_days':'Últimos días', 'last_items':'Últimos registros', 'active_items':'Registros activos', 'updated_items':'Registros por revisar', } %} {% set noShow = ['null','null'] %} {% block titulo %}Gestor de páginas{% endblock %} {% block search %}{% endblock %} {% block lang %}{% endblock %} {% block stylesheet %} {{ parent() }} {% endblock stylesheet %} {% block bread %} {{ breadCrumbs | raw }}
{% endblock bread %} {% block oneOne %}
Nueva entrada
{% if date_start or date_end or search or filter_predefined %} Filtros: {% endif %} {% if (date_start or date_end) and filter_predefined not in 'today,yesterday' %} Entre el {{ dateFormat(date_start) }} y el {{ dateFormat(date_end) }} {% endif %} {% if search %} {{ search }} {% endif %} {% if filter_predefined is not empty and filter_predefined != 'last_days' %} {{ filters[filter_predefined] }} {% endif %}

{{ numItems }} {{ numItems == 1 ? 'página seleccionada' : 'páginas seleccionadas' }}

{% for row in items %} {% if loop.first %} {% for k,v in row %} {% if k == 'id' %} {% endif %} {% if k not in noShow %} {% endif %} {% endfor %} {% endif %} {{ loop.first ? '' : '' }} {% for k,v in row %} {% if k == 'id' %} {% endif %} {% if k not in noShow %} {% endif %} {% endfor %} {{ loop.last ? '' : '' }} {% endfor %}
Route Name Template {{ k | replace({"_":" "}) | capitalize }}
{{ loop.index + ((page-1) * limit) }} page-{{ row.id }} {% set page_file = ROOT_DIR ~ 'src/IndexBundle/views/page-' ~ row.id ~ '.html.twig' %} {% if file_exists(page_file) %} page-{{ row.id }}.html.twig {% else %} page.html.twig {% endif %} {% if k in 'create_at,update_at' %} {{ v | date('d-m-Y H:i') }} {% elseif k in 'state' %} {{ v == 1 ? 'Active' : 'Inactive' }} {% elseif k in 'url' %} {{ v }} {% else %} {{ v }} {% endif %} Editar Eliminar
{{ paginador | raw }}
Versión: 1.0 {% endblock oneOne %} {% block javascript %} {{ parent() }} {% endblock javascript %}