Skip to content

Instantly share code, notes, and snippets.

View Abhoryo's full-sized avatar

Petit Yoann Abhoryo

  • Montpellier, France
View GitHub Profile
{# ------------------------------------------------------ grid ------------------------------------------------------ #}
{% block grid %}
<div class="grid">
{% if grid.totalCount > 0 or grid.isFiltered or grid.noDataMessage is sameas(false) %}
<form id="{{ grid.hash }}" action="{{ grid.routeUrl }}" method="post">
{% if grid.massActions|length > 0 %}
{{ grid_actions(grid) }}
{% endif %}
<table>
{% if grid.isTitleSectionVisible %}
@Abhoryo
Abhoryo / blocks.html.twig
Created July 2, 2012 14:40
Javascript load of the grid
{# ------------------------------------------------------ grid ------------------------------------------------------ #}
{% block grid %}
<div class="grid">
{% if grid.totalCount > 0 or grid.isFiltered or grid.noDataMessage is sameas(false) %}
<form id="{{ grid.hash }}" action="{{ grid.routeUrl }}" method="post">
<div class="grid_header">
{% if grid.massActions|length > 0 %}
{{ grid_actions(grid) }}
{% endif %}
</div>