{# Each field type is rendered by a template fragment, which is determined by the name of your form type class (DateTimePickerType -> date_time_picker) and the suffix "_widget". This can be controlled by overriding getBlockPrefix() in DateTimePickerType. See https://symfony.com/doc/current/cookbook/form/create_custom_field_type.html#creating-a-template-for-the-field #} {% block date_time_picker_widget %}
{{ block('datetime_widget') }}
{% endblock %} {% block tags_input_widget %}
{{ form_widget(form, {'attr': {'data-toggle': 'tagsinput', 'data-tags': tags|json_encode}}) }}
{% endblock %} {% block checkbox_radio_label -%} {# Do not display the label if widget is not defined in order to prevent double label rendering #} {%- if widget is defined -%} {%- if required -%} {%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) -%} {%- endif -%} {%- if parent_label_class is defined -%} {%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) -%} {%- endif -%} {%- if label is not same as(false) and label is empty -%} {%- if label_format is not empty -%} {%- set label = label_format|replace({ '%name%': name, '%id%': id, }) -%} {%- else -%} {% set label = name|humanize %} {%- endif -%} {%- endif -%} {{- widget|raw }} {{ label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans(label_translation_parameters, translation_domain)) -}} {%- endif -%} {%- endblock checkbox_radio_label %}