Skip to content

Commit 15fce4a

Browse files
committed
bug #351 Fix a datetime picker widget's name (voronkovich)
This PR was merged into the master branch. Discussion ---------- Fix a datetime picker widget's name Commits ------- 16facdd Fix a datetime picker widget's name
2 parents fc49fad + 16facdd commit 15fce4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/Resources/views/form/fields.html.twig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{#
22
Each field type is rendered by a template fragment, which is determined
3-
by the value of your getName() method and the suffix _widget.
3+
by the name of your form type class (DateTimePickerType -> date_time_picker)
4+
and the suffix "_widget". This can be controlled by overriding getBlockPrefix()
5+
in DateTimePickerType.
46
57
See http://symfony.com/doc/current/cookbook/form/create_custom_field_type.html#creating-a-template-for-the-field
68
#}
79

8-
{% block app_datetimepicker_widget %}
10+
{% block date_time_picker_widget %}
911
{% spaceless %}
1012
<div class="input-group date" data-toggle="datetimepicker">
1113
{{ block('datetime_widget') }}

0 commit comments

Comments
 (0)