8000 Fix with_minutes option in time widget · symfony/symfony@f8d53ea · GitHub
[go: up one dir, main page]

Skip to content

Commit f8d53ea

Browse files
arduanovfabpot
authored andcommitted
Fix with_minutes option in time widget
Option with_minutes may be configured in form http://symfony.com/doc/current/reference/forms/types/datetime.html#with-minutes
1 parent 61550dc commit f8d53ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
{% if datetime is not defined or false == datetime -%}
8181
<div {{ block('widget_container_attributes') -}}>
8282
{%- endif -%}
83-
{{- form_widget(form.hour) }}:{{ form_widget(form.minute) }}{% if with_seconds %}:{{ form_widget(form.second) }}{% endif %}
83+
{{- form_widget(form.hour) }}{% if with_minutes %}:{{ form_widget(form.minute) }}{% endif %}{% if with_seconds %}:{{ form_widget(form.second) }}{% endif %}
8484
{% if datetime is not defined or false == datetime -%}
8585
</div>
8686
{%- endif -%}

0 commit comments

Comments
 (0)
0