Skip to content

Instantly share code, notes, and snippets.

Avatar

Petit Yoann Abhoryo

  • Montpellier, France
View GitHub Profile
@Abhoryo
Abhoryo / blocks.html.twig
Created Jul 2, 2012
Javascript load of the grid
View blocks.html.twig
{# ------------------------------------------------------ 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>
View blocks.html.twig
{# ------------------------------------------------------ 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 %}
You can’t perform that action at this time.