{% extends showListType=="list"?"QbaBitCoreBundle:Form:list.html.twig":"QbaBitCoreBundle:Form:view.html.twig" %} {% block search_columns %}
{{ form_label(searchForm.name) }} {{ form_widget(searchForm.name) }}
{{ form_row(searchForm.submit) }}
{% endblock %} {% block dropdown_options %} {% if is_granted( role.install ) %}
  • {{ 'install' | trans({}, 'template') }}
  • {% endif %} {% if is_granted(role.uninstall_do_all ) %}
  • {{ 'uninstall' | trans({}, 'template') }}
  • {% endif %} {% if is_granted(role.show ) %}
  • {{ 'show' | trans({}, 'template') }}
  • {% endif %} {% endblock %} {% block columns %} {{ 'images' | trans({}, 'template') }} {{ knp_pagination_sortable(data, 'name' | trans({}, 'template'), 'c.name', {'direction': 'desc'}) }} {{ 'price' | trans({}, 'template') }} {{ 'category' | trans({}, 'template') }} {% endblock %} {% block rows %} {% if showListType =="list" %} {% for qb_template_row_org in searchForm.listData.rows %} {% set qb_template=qb_template_row_org.vars.data %} {% set qb_template_row =qb_template_row_org.children["checked"] %} {{ form_widget(qb_template_row) }} {{ form_widget(qb_template_row_org.children["images"]) }} {% if is_granted(role.show) %} {{ qb_template.name }} {% else %} {{ qb_template.name }} {% endif %} {{ qb_template.price }} {{ qb_template.category.name }} {% else %} {{ 'no_records_founds' | trans({}, 'qbabitcore') }} {% endfor %} {% else %} {% for qb_template_row_org in searchForm.listData.rows %} {% set qb_template=qb_template_row_org.vars.data %} {% set qb_template_row =qb_template_row_org.children["checked"] %}
    {% if is_granted(role.uninstall_do) or is_granted(role.show) %}

    {% if is_granted(role.show) %} {% endif %} {% if is_granted(role.uninstall_do) %} {{ form_widget(qb_template_row) }} {% endif %}
    {% endif %}
    {% else %}
    {{ 'no_records_founds' | trans({}, 'qbabitcore') }}
    {% endfor %} {% endif %} {% endblock %}