Added advanced options to category admin page.

This commit is contained in:
Jan Böhmer 2019-04-26 18:05:43 +02:00
parent 424407f253
commit 314f1ed42f
6 changed files with 292 additions and 15 deletions

View file

@ -49,20 +49,38 @@
</ul>
<div class="tab-content mb-3 mt-3">
<div id="home" class="tab-pane fade show active">
{{ form_start(form) }}
{{ form_row(form.name) }}
{{ form_row(form.parent) }}
{% block additional_controls %}{% endblock %}
{{ form_row(form.comment) }}
{% if block('additional_pills') is not empty %}
<ul class="nav nav-pills mb-2">
<li class="nav-item"><a data-toggle="tab" class="nav-link link-anchor active" href="#home_common">{% trans %}admin.common{% endtrans %}</a></li>
{% block additional_pills %}{% endblock %}
</ul>
{% endif %}
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="home_common">
{{ form_row(form.name) }}
{{ form_row(form.parent) }}
{{ form_row(form.comment) }}
</div>
{% block additional_panes %}{% endblock %}
</div>
{{ form_row(form.save) }}
{{ form_row(form.reset) }}
{{ form_end(form) }}
{# Only include on existing parts #}
{% if entity.id %}
{{ include('AdminPages/_delete_form.html.twig') }}
{% endif %}
</div>
<div id="info" class="tab-pane fade">
@ -100,6 +118,8 @@
</div>
</div>
{% if entity.id %}
<div id="export" class="tab-pane fade">
{% include 'AdminPages/_export_form.html.twig' with {'path' : path('attachment_type_export', {'id': entity.id})} %}
@ -120,6 +140,8 @@
{% endif %}
</div>