diff --git a/Resources/views/Form/content.html.twig b/Resources/views/Form/content.html.twig index 427dac6..1d1effd 100644 --- a/Resources/views/Form/content.html.twig +++ b/Resources/views/Form/content.html.twig @@ -207,6 +207,19 @@ {% endif %} {{ form_row(form.alt) }} + {% if form.mime_type is defined %} + {% import "@SherlockodeAdvancedContent/Common/Macros/collapse.html.twig" as macro %} + + {% set content %} + {{ form_widget(form.mime_type) }} + {{ form_help(form.mime_type) }} + {{ form_errors(form.mime_type) }} + {% endset %} + + {% set data = [{'title': form_label(form.mime_type), 'content': content }] %} + + {{ macro.buildAccordion(data) }} + {% endif %} {{ form_rest(form) }} {% endblock %} @@ -235,6 +248,19 @@ {% endif %} {{ form_row(form.title) }} + {% if form.mime_type is defined %} + {% import "@SherlockodeAdvancedContent/Common/Macros/collapse.html.twig" as macro %} + + {% set content %} + {{ form_widget(form.mime_type) }} + {{ form_help(form.mime_type) }} + {{ form_errors(form.mime_type) }} + {% endset %} + + {% set data = [{'title': form_label(form.mime_type), 'content': content }] %} + + {{ macro.buildAccordion(data) }} + {% endif %} {{ form_rest(form) }} {% endblock %} diff --git a/Resources/views/Form/theme.html.twig b/Resources/views/Form/theme.html.twig index 19131d8..e42c14b 100644 --- a/Resources/views/Form/theme.html.twig +++ b/Resources/views/Form/theme.html.twig @@ -6,17 +6,3 @@ {% endif %} {{ parent() }} {% endblock %} - -{% block ___field_name___value_mime_type_row %} - {% import "@SherlockodeAdvancedContent/Common/Macros/collapse.html.twig" as macro %} - - {% set content %} - {{ form_widget(form) }} - {{ form_help(form) }} - {{ form_errors(form) }} - {% endset %} - - {% set data = [{'title': form_label(form), 'content': content }] %} - - {{ macro.buildAccordion(data) }} -{% endblock %}