{% extends "qommon/forms/widget.html" %}
{% block widget-control %}
{% if "readonly" in widget.attrs %}
{# for readonly mode, add an hidden field with the correct value and a text #}
{# input with the formated date value; this will avoid displaying the date in #}
{# Y-m-d format, or including a date input with an ineffective reset × button. #}
but also include js datetime picker #}
{# attributes, in case it's not supported. #}
{% endblock %}