Added company quick links to supplier and manufactuerer parts lists

Also improved the styling.
This commit is contained in:
Jan Böhmer 2020-05-27 21:42:20 +02:00
parent 915287de48
commit 53dd0c4228
6 changed files with 36 additions and 14 deletions

View file

@ -66,6 +66,8 @@
</div>
</div>
<div class="col-sm-3">
{% block quick_links %}{% endblock %}
<a class="btn btn-secondary btn-block mb-2" href="{{ entity | entityURL('edit') }}">
<i class="fas fa-edit"></i> {% trans %}entity.edit.btn{% endtrans %}
</a>

View file

@ -6,7 +6,13 @@
{% block content %}
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'manufacturer.label'} %}
{% embed "Parts/lists/_info_card.html.twig" with {'header_label': 'manufacturer.label'} %}
{% block quick_links %}
<div class="mb-2">
{% include 'QuickLinks/_company.html.twig' %}
</div>
{% endblock %}
{% endembed %}
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'manufacturer': entity.iD}} %}

View file

@ -6,7 +6,13 @@
{% block content %}
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'supplier.label'} %}
{% embed "Parts/lists/_info_card.html.twig" with {'header_label': 'supplier.label'} %}
{% block quick_links %}
<div class="mb-2">
{% include 'QuickLinks/_company.html.twig' %}
</div>
{% endblock %}
{% endembed %}
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'supplier': entity.iD}} %}