8000 bug #15776 [TwigBridge] fix with_minutes option in time widget (ardua… · symfony/symfony@934a319 · GitHub
[go: up one dir, main page]

Skip to content

Commit 934a319

Browse files
committed
bug #15776 [TwigBridge] fix with_minutes option in time widget (arduanov)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #15776). Discussion ---------- [TwigBridge] fix with_minutes option in time widget | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | | Fixed tickets | | License | MIT | Doc PR | Option with_minutes may be configured in form link for doc http://symfony.com/doc/current/reference/forms/types/datetime.html#with-minutes Commits ------- f8d53ea Fix with_minutes option in time widget
2 parents 61550dc + f8d53ea commit 934a319

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