Use Html5 datetype and remove pikaday and moment.js

This commit is contained in:
2021-06-08 17:58:23 +02:00
parent 1967d6ea4c
commit 8d7d170f11
11 changed files with 12 additions and 4026 deletions

View File

@@ -112,24 +112,6 @@
</div>
{% endblock money_widget %}
{% block date_widget %}
{% apply spaceless %}
{% if widget == 'single_text' %}
{% set attr = {'class' : 'input datepicker'} %}
{{ block('form_widget_simple') }}
{% else %}
<div {{ block('widget_container_attributes') }}>
{{ date_pattern|replace({
'{{ year }}': form_widget(form.year ),
'{{ month }}': form_widget(form.month ),
'{{ day }}': form_widget(form.day ),
})|raw }}
</div>
{% endif %}
{% endapply %}
{% endblock date_widget %}
{%- block time_widget -%}
{%- if widget == 'single_text' -%}
{{ block('form_widget_simple') }}
@@ -196,4 +178,4 @@
{{ form_widget(entry) }}
{% endif %}
{% endfor %}
{% endblock %}
{% endblock %}