diff --git a/templates/components/collection_type.macro.html.twig b/templates/components/collection_type.macro.html.twig index 1db04763..fde2b961 100644 --- a/templates/components/collection_type.macro.html.twig +++ b/templates/components/collection_type.macro.html.twig @@ -29,4 +29,13 @@ {% macro delete_btn() %} {{ stimulus_action('elements/collection_type', 'deleteElement') }} +{% endmacro %} + +{% macro new_element_indicator(value) %} + {% if value.id is not defined or value.id is null %} + + New alerts + + {% endif %} {% endmacro %} \ No newline at end of file diff --git a/templates/form/collection_types_layout.html.twig b/templates/form/collection_types_layout.html.twig index 9cc1297b..96b71bf0 100644 --- a/templates/form/collection_types_layout.html.twig +++ b/templates/form/collection_types_layout.html.twig @@ -50,8 +50,9 @@ {{ form_errors(form.name) }} - {{ form_errors(form) }} diff --git a/templates/parts/edit/edit_form_styles.html.twig b/templates/parts/edit/edit_form_styles.html.twig index 4e68ae5f..6658fa80 100644 --- a/templates/parts/edit/edit_form_styles.html.twig +++ b/templates/parts/edit/edit_form_styles.html.twig @@ -14,9 +14,10 @@ {{ form_widget(form.price_related_quantity, {'attr': {'class': 'form-control-sm'}}) }} {{ form_errors(form.price_related_quantity) }} - {{ form_errors(form) }} @@ -57,8 +58,9 @@ - {{ form_errors(form) }} @@ -77,8 +79,10 @@ {{ form_widget(form.value_text) }}{{ form_errors(form.value_text) }} {{ form_widget(form.group) }}{{ form_errors(form.group) }} - {{ form_errors(form) }} @@ -108,9 +112,10 @@ - {{ form_errors(form) }} @@ -140,9 +145,10 @@ - {% set attach = form.vars.value %} @@ -210,9 +216,10 @@ - {{ form_errors(form) }} diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index f4449c9e..8873d5c4 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -11957,5 +11957,17 @@ Please note, that you can not impersonate a disabled user. If you try you will g Stocked amount + + + collection_type.new_element + collection_type.new_element + + + + + collection_type.new_element.tooltip + This element was newly created and was not persisted to the database yet. + +