Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/Form/fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@
{# Its hardcoded for the symfony format because the patterns don't match #}
{% if format is defined and format == 'dd/MM/yyyy' %}{% set attr = attr|merge({'data-date-format': 'd/m/Y'}) -%}{% endif %}
{# The format needs to be defined before any min or max date #}
{% if minimum_date %}{% set attr = attr|merge({'data-min-date': minimum_date}) -%}{% endif %}
{% if maximum_date %}{% set attr = attr|merge({'data-max-date': maximum_date}) -%}{% endif %}
{% if minimum_date %}{% set attr = attr|merge({'data-min-date': minimum_date|date('d/m/Y')}) -%}{% endif %}
{% if maximum_date %}{% set attr = attr|merge({'data-max-date': maximum_date|date('d/m/Y')}) -%}{% endif %}
{% if read_only is defined and read_only %}{% set attr = attr|merge({'readonly': 'readonly'}) -%}{% endif %}
{% if disabled %}{% set attr = attr|merge({'disabled': 'disabled'}) -%}{% endif %}
{% if required %}{% set attr = attr|merge({'required': 'required'}) -%}{% endif %}
Expand Down