Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
Created October 25, 2012 10:48
Show Gist options
  • Save ZeeAgency/3951964 to your computer and use it in GitHub Desktop.
Save ZeeAgency/3951964 to your computer and use it in GitHub Desktop.
Exemple de surcharge datagrid/filter
{% block admin_nodes_datagrid_filter_online %}
{% include "datagrid/filter/online.twig" with {"attrs": {
"label": t("Statut"),
"field": "status",
"options": [
{value: '', text: t("Tous")},
{value: 'online', text: t("Online")},
{value: 'pending', text: t("En attente")},
{value: 'offline', text: t("Offline")}
]
} %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment