mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-19 08:39:34 +00:00
Added an modal form on the part info page, to merge a part into another one
This commit is contained in:
parent
b0f5d9b55f
commit
73f6d79925
4 changed files with 167 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{# Create new button #}
|
||||
{% if is_granted('create', part) %}
|
||||
<br>
|
||||
<div class="btn-group mt-2">
|
||||
|
|
@ -27,6 +27,9 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# Merge modal #}
|
||||
{% include "parts/info/_merge_modal.html.twig" %}
|
||||
|
||||
<form method="post" class="mt-2" action="{{ entity_url(part, 'delete') }}"
|
||||
{{ stimulus_controller('elements/delete_btn') }} {{ stimulus_action('elements/delete_btn', "submit", "submit") }}
|
||||
data-delete-title="{% trans with {'%name%': part.name|escape }%}part.delete.confirm_title{% endtrans %}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue