Added a duplicate button in data structures (categories, footprints, etc.) Admin pages.

This commit is contained in:
Jan Böhmer 2020-04-06 13:14:47 +02:00
parent 315cc30a1a
commit e654c46e11
16 changed files with 92 additions and 65 deletions

View file

@ -147,6 +147,7 @@
{# Only include on existing parts #}
{% if entity.id %}
{{ include('AdminPages/_duplicate.html.twig') }}
{{ include('AdminPages/_delete_form.html.twig') }}
{% endif %}

View 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>