We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08d506 commit 16facddCopy full SHA for 16facdd
app/Resources/views/form/fields.html.twig
@@ -1,11 +1,13 @@
1
{#
2
Each field type is rendered by a template fragment, which is determined
3
- by the value of your getName() method and the suffix _widget.
+ 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.
6
7
See http://symfony.com/doc/current/cookbook/form/create_custom_field_type.html#creating-a-template-for-the-field
8
#}
9
-{% block app_datetimepicker_widget %}
10
+{% block date_time_picker_widget %}
11
{% spaceless %}
12
<div class="input-group date" data-toggle="datetimepicker">
13
{{ block('datetime_widget') }}
0 commit comments