{% extends "QbaBitCoreBundle:Form:list.html.twig" %} {% set tit1 = 'list_X' | trans({'%name%': "Plantilla disponibles a instalar" }, 'qbabitcore') %} {% set paramsUrl = {'slugSelected': app.request.get('slugSelected')} %} {% set fake = QbaBitSeoTitle(tit1) %} {% block title_inner %} {{ tit1 }} {% endblock %} {% block search_columns %}
{{ form_label(searchForm.name) }} {{ form_widget(searchForm.name) }}
{{ form_row(searchForm.submit) }}
{% endblock %} {% block post_rows %}
{% if returnButton!=null %} {{ form_start(returnButton) }} {{ form_widget(returnButton) }} {{ form_end(returnButton) }} {% endif %}
{% endblock %} {% block dropdown_options %} {% if is_granted(role.install_do_all ) %}
  • {{ 'install' | trans({}, 'template') }}
  • {% endif %} {% endblock %} {% block columns %} {% if error is defined %} {{ 'name'| trans({}, 'language') }} {% else %} {{ knp_pagination_sortable(data, 'name' | trans({}, 'language'), 'c.name', {'direction': 'desc'}) }} {{ 'installed'| trans({}, 'template') }} {% endif %} {% endblock %} {% block rows %} {% if error is defined %} {{ 'error' | trans({"error":errorMsg}, 'template_install') }} {% else %} {% for qb_templates_install_row in searchForm.listData.rows %} {% set qb_templates_install=qb_templates_install_row.vars.data %} {% set qb_templates_install_row =qb_templates_install_row.children["checked"] %} {{ form_widget(qb_templates_install_row ) }} {% if is_granted(role.install_show) %} {% if returnButton!=null %} {{ qb_templates_install.name }} {% else %} {{ qb_templates_install.name }} {% endif %} {% else %} {{ qb_templates_install.name }} {% endif %} {% else %} {{ 'no_records_founds' | trans({}, 'qbabitcore') }} {% endfor %} {% endif %} {% endblock %}