{% extends 'APYDataGridBundle::blocks.html.twig' %}
{# ---------------------------------------------------- custom filter for date --------------------------------------------------- #}
{% block grid %}
{% if '/phase' in app.request.uri %}
{% include 'USStatisticsBundle:Phase:includes/menu.html.twig' %}
{% elseif '/activity' in app.request.uri %}
{% include 'USStatisticsBundle:Activity:includes/menu.html.twig' %}
{% elseif '/status' in app.request.uri and '/active-plan' not in app.request.uri %}
{% include 'USStatisticsBundle:Status:includes/headerStatus.html.twig' %}
{% elseif '/plan/incomplete' in app.request.uri %}
{% include 'USStatisticsBundle:Plan:includes/menu.html.twig' %}
{% elseif '/satisfaction/range/' in app.request.uri %}
{% include 'USStatisticsBundle:Satisfaction:includes/menu.html.twig' %}
{% endif %}
{% endblock grid_filters %}
{# -------------------------------------------- grid_column_filter_type_input --------------------------------------- #}
{% block grid_column_filter_type_input %}
{% set btwOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_BTW') %}
{% set btweOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_BTWE') %}
{% set isNullOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_ISNULL') %}
{% set isNotNullOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_ISNOTNULL') %}
{% set op = column.data.operator is defined ? column.data.operator : column.defaultOperator %}
{% set from = column.data.from is defined ? column.data.from : null %}
{% set to = column.data.to is defined ? column.data.to : null %}
{{ grid_column_operator(column, grid, op, submitOnChange) }}