diff --git a/assets/controllers/elements/delete_btn_controller.js b/assets/controllers/elements/delete_btn_controller.js index 1845603a..0a8c90c2 100644 --- a/assets/controllers/elements/delete_btn_controller.js +++ b/assets/controllers/elements/delete_btn_controller.js @@ -1,6 +1,7 @@ import {Controller} from "@hotwired/stimulus"; import * as bootbox from "bootbox"; +import "../../css/bootbox_extensions.css"; export default class extends Controller { diff --git a/templates/AdminPages/_parameters.html.twig b/templates/AdminPages/_parameters.html.twig index 0a98674b..f4d48395 100644 --- a/templates/AdminPages/_parameters.html.twig +++ b/templates/AdminPages/_parameters.html.twig @@ -1,8 +1,8 @@ -{% form_theme form with ['Parts/edit/edit_form_styles.html.twig', "bootstrap_4_layout.html.twig"] %} +{% form_theme form with ['Parts/edit/edit_form_styles.html.twig'] %} {% import 'components/collection_type.macro.html.twig' as collection %} -
+
diff --git a/templates/Parts/edit/_lots.html.twig b/templates/Parts/edit/_lots.html.twig index 65f7311f..9ed6602d 100644 --- a/templates/Parts/edit/_lots.html.twig +++ b/templates/Parts/edit/_lots.html.twig @@ -1,59 +1,22 @@ {% set delete_btn %} - + {% endset %} +{% form_theme form with ['Parts/edit/edit_form_styles.html.twig'] %} +{% import 'components/collection_type.macro.html.twig' as collection %} -
- - {% for lot in form.partLots %} - - - - - {% endfor %} - -
- {{ form_widget(lot) }} - - {{ delete_btn }} -
+
+ + + {% for lot in form.partLots %} + {{ form_widget(lot) }} + {% endfor %} + +
- - - \ No newline at end of file + +
\ No newline at end of file diff --git a/templates/Parts/edit/_specifications.html.twig b/templates/Parts/edit/_specifications.html.twig index e3bea0b1..42ffe9ac 100644 --- a/templates/Parts/edit/_specifications.html.twig +++ b/templates/Parts/edit/_specifications.html.twig @@ -1,8 +1,8 @@ -{% form_theme form with ['Parts/edit/edit_form_styles.html.twig', "bootstrap_4_layout.html.twig"] %} +{% form_theme form with ['Parts/edit/edit_form_styles.html.twig'] %} {% import 'components/collection_type.macro.html.twig' as collection %} -
+
diff --git a/templates/Parts/edit/edit_form_styles.html.twig b/templates/Parts/edit/edit_form_styles.html.twig index 9ad495e0..55245411 100644 --- a/templates/Parts/edit/edit_form_styles.html.twig +++ b/templates/Parts/edit/edit_form_styles.html.twig @@ -80,4 +80,22 @@ {{ form_errors(form) }} +{% endblock %} + +{% block part_lot_widget %} + {% import 'components/collection_type.macro.html.twig' as collection %} + + + + {% endblock %} \ No newline at end of file diff --git a/templates/components/collection_type.macro.html.twig b/templates/components/collection_type.macro.html.twig index f7c848c1..b151984d 100644 --- a/templates/components/collection_type.macro.html.twig +++ b/templates/components/collection_type.macro.html.twig @@ -1,7 +1,7 @@ {% macro controller(form, deleteMessage) %} {{ stimulus_controller('elements/collection_type', { 'deleteMessage': 'parameter.delete.confirm'|trans, - 'prototype': form_widget(form.parameters.vars.prototype)|e('html_attr') + 'prototype': form_widget(form.vars.prototype)|e('html_attr') }) }} {% endmacro %}
+ {{ form_widget(form) }} + + {% dump(form) %} + + {{ form_errors(form) }} +