Use a custom delete confirmation message for part associations

This commit is contained in:
Jan Böhmer 2023-11-16 22:38:01 +01:00
parent c8bd800b9f
commit 626c4dd5d6
2 changed files with 7 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{% form_theme form with ['parts/edit/edit_form_styles.html.twig'] %} {% form_theme form with ['parts/edit/edit_form_styles.html.twig'] %}
{% import 'components/collection_type.macro.html.twig' as collection %} {% import 'components/collection_type.macro.html.twig' as collection %}
<div {{ collection.controller(form.associated_parts_as_owner, 'part_lot.edit.delete.confirm') }}> <div {{ collection.controller(form.associated_parts_as_owner, 'part_association.edit.delete.confirm') }}>
<table class="table table-striped table-sm" id="association_table" {{ collection.target() }}> <table class="table table-striped table-sm" id="association_table" {{ collection.target() }}>
<tbody> <tbody>
{% for assoc in form.associated_parts_as_owner %} {% for assoc in form.associated_parts_as_owner %}

View file

@ -11921,5 +11921,11 @@ Please note, that you can not impersonate a disabled user. If you try you will g
<target>Custom type</target> <target>Custom type</target>
</segment> </segment>
</unit> </unit>
<unit id="JDsNNm8" name="part_association.edit.delete.confirm">
<segment>
<source>part_association.edit.delete.confirm</source>
<target>Do you really want to delete this association? This can not be undone.</target>
</segment>
</unit>
</file> </file>
</xliff> </xliff>