Added admin pages for manufacturers and suppliers.

This commit is contained in:
Jan Böhmer 2019-04-26 19:12:48 +02:00
parent df0a8254bf
commit 4e9cbdffed
9 changed files with 383 additions and 6 deletions

View file

@ -0,0 +1,23 @@
{% extends "AdminPages/EntityAdminBase.html.twig" %}
{% block additional_controls %}
{{ form_row(form.address) }}
{{ form_row(form.phone_number) }}
{{ form_row(form.fax_number) }}
{{ form_row(form.email_address) }}
{{ form_row(form.website) }}
{{ form_row(form.auto_product_url) }}
{% endblock %}
{% block comment %}{% endblock %}
{% block additional_pills %}
<li class="nav-item"><a data-toggle="tab" class="nav-link link-anchor" href="#home_comment">{% trans %}admin.comment{% endtrans %}</a></li>
{% endblock %}
{% block additional_panes %}
<div class="tab-pane" id="home_comment">
{{ form_row(form.comment) }}
</div>
{% endblock %}

View file

@ -66,7 +66,13 @@
<div class="tab-pane active" id="home_common">
{{ form_row(form.name) }}
{{ form_row(form.parent) }}
{% block additional_controls %}{% endblock %}
{% block comment %}
{{ form_row(form.comment) }}
{% endblock %}
</div>
{% block additional_panes %}{% endblock %}
</div>

View file

@ -0,0 +1,5 @@
{% extends "AdminPages/CompanyAdminBase.html.twig" %}
{% block card_title %}
<i class="fas fa-industry fa-fw"></i> {% trans %}manufacturer.caption{% endtrans %}
{% endblock %}

View file

@ -0,0 +1,5 @@
{% extends "AdminPages/CompanyAdminBase.html.twig" %}
{% block card_title %}
<i class="fas fa-truck fa-fw"></i> {% trans %}supplier.caption{% endtrans %}
{% endblock %}