Added an button to parts tables to directly add a new part in the selected category.

This commit is contained in:
Jan Böhmer 2020-04-01 18:02:56 +02:00
parent a4ee46fed4
commit 6ad24aa9f8
8 changed files with 55 additions and 3 deletions

View file

@ -0,0 +1,6 @@
<div class="row mb-3">
<div class="col">
<a href="{{ url('part_new', url_options) }}" class="btn btn-success float-left"><i class="fas fa-plus-square fa-fw"></i>
{% trans%}part.create.btn{% endtrans %}</a>
</div>
</div>

View file

@ -6,6 +6,7 @@
{% block content %}
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {}} %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}

View file

@ -8,6 +8,8 @@
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'category.label'} %}
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'category': entity.iD}} %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}

View file

@ -8,6 +8,8 @@
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'footprint.label'} %}
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'footprint': entity.iD}} %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}

View file

@ -8,6 +8,8 @@
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'manufacturer.label'} %}
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'manufacturer': entity.iD}} %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}

View file

@ -8,6 +8,8 @@
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'storelocation.label'} %}
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'storelocation': entity.iD}} %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}

View file

@ -8,6 +8,8 @@
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'supplier.label'} %}
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'supplier': entity.iD}} %}
{% include "Parts/lists/_parts_list.html.twig" %}
{% endblock %}