1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-15 17:44:17 +02:00

feat(form-plugin): fix date format for date time picker

This commit is contained in:
Awilum
2020-02-27 16:54:49 +03:00
parent 589f258ad7
commit 3a0334c079

View File

@@ -1,7 +1,7 @@
<div class="form-group {{ size }}">
<label for="{{ id }}" class="form-control-title">{{ tr(title) }}</label>
<input type="text" id="{{ id }}" name="{{ id }}" value="{{ value }}" class="js-datetimepicker {{ class }}">
<input type="text" id="{{ id }}" name="{{ id }}" value="{{ value|date(registry.flextype.date_display_format) }}" class="js-datetimepicker {{ class }}">
{% if help %}
<small>{{ help }}</small>
{% endif %}
</div>
</div>