mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Use Html5 datetype and remove pikaday and moment.js
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user