mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-24 11:59:31 +00:00
Added an button to parts tables to directly add a new part in the selected category.
This commit is contained in:
parent
a4ee46fed4
commit
6ad24aa9f8
8 changed files with 55 additions and 3 deletions
6
templates/Parts/lists/_action_bar.html.twig
Normal file
6
templates/Parts/lists/_action_bar.html.twig
Normal 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>
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
{% include "Parts/lists/_action_bar.html.twig" with {'url_options': {}} %}
|
||||
{% include "Parts/lists/_parts_list.html.twig" %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue