diff --git a/Resources/views/bootstrap_4_tab_layout.html.twig b/Resources/views/bootstrap_4_tab_layout.html.twig new file mode 100644 index 0000000..5dd21a7 --- /dev/null +++ b/Resources/views/bootstrap_4_tab_layout.html.twig @@ -0,0 +1,59 @@ +{% block translations_row %} +
+ {{ form_label(form) }} + {{ form_widget(form) }} + {{ form_errors(form) }} +
+{% endblock %} + +{% block translations_widget %} + {{ block('nav_tabs') }} + + {{ block('tab_contents') }} +{% endblock %} + +{% block nav_tabs %} + +{% endblock %} + +{% block tab_contents %} +
+ {% for key, child in form %} + {{ block('tab_content') }} + {% endfor %} +
+ + {{ form_errors(form) }} +{% endblock %} + +{% block nav_tab %} + {% set active = loop.first %} + +{% endblock %} + +{% block tab_content %} + {% set active = loop.first %} +
+ {{ form_widget(child) }} + {{ form_errors(child) }} +
+{% endblock %}