mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-16 05:14:35 +02:00
Added a duplicate button in data structures (categories, footprints, etc.) Admin pages.
This commit is contained in:
parent
315cc30a1a
commit
e654c46e11
16 changed files with 92 additions and 65 deletions
|
@ -147,6 +147,7 @@
|
|||
|
||||
{# Only include on existing parts #}
|
||||
{% if entity.id %}
|
||||
{{ include('AdminPages/_duplicate.html.twig') }}
|
||||
{{ include('AdminPages/_delete_form.html.twig') }}
|
||||
{% endif %}
|
||||
|
||||
|
|
5
templates/AdminPages/_duplicate.html.twig
Normal file
5
templates/AdminPages/_duplicate.html.twig
Normal file
|
@ -0,0 +1,5 @@
|
|||
<div class="row mb-2">
|
||||
<div class="offset-3 col">
|
||||
<a class="btn btn-info {% if not is_granted('create', entity) %}disabled{% endif %}" href="{{ entity | entityURL('clone') }}">{% trans %}entity.duplicate{% endtrans %}</a>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue