mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-30 22:19:35 +00:00
Added possibility to search the info providers to update an existing part
This commit is contained in:
parent
73f6d79925
commit
3eeeb01ad1
5 changed files with 56 additions and 7 deletions
|
|
@ -30,6 +30,16 @@
|
|||
{# Merge modal #}
|
||||
{% include "parts/info/_merge_modal.html.twig" %}
|
||||
|
||||
{# Update part from info provider button #}
|
||||
{% if is_granted('edit', part) and is_granted('@info_providers.create_parts') %}
|
||||
<br>
|
||||
<a class="btn btn-info mt-2" href="{{ path('info_providers_update_part_search', {'target': part.iD}) }}">
|
||||
<i class="fas fa-cloud-arrow-down"></i>
|
||||
{% trans %}part.update_part_from_info_provider.btn{% endtrans %}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<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