mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-14 04:14:36 +02:00
Allow to show parts in a storelocation or an supplier.
This commit is contained in:
parent
748905c325
commit
31e89e2e36
8 changed files with 107 additions and 6 deletions
|
@ -11,7 +11,9 @@
|
|||
<tbody>
|
||||
{% for order in part.orderdetails %}
|
||||
<tr class="{% if order.obsolete %}table-danger{% endif %}">
|
||||
<td>{{ order.supplier.name }}</td>
|
||||
<td>
|
||||
<a href="{{ order.supplier | entityURL('list_parts') }}">{{ order.supplier.name }}</a>
|
||||
</td>
|
||||
<td>{% if order.supplierProductUrl is not empty %}
|
||||
<a href="{{ order.supplierProductUrl }}" target="_blank" class="link-external">{{ order.supplierPartNr }}</a>
|
||||
{% else %}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
{% import "helper.twig" as helper %}
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -15,7 +17,7 @@
|
|||
<td>{{ lot.description }}</td>
|
||||
<td>
|
||||
{% if lot.storageLocation %}
|
||||
{{ lot.storageLocation.fullPath }}
|
||||
{{ helper.structural_entity_link(lot.storageLocation) }}
|
||||
{% else %}
|
||||
<span class="badge badge-pill badge-warning">
|
||||
<i class="fas fa-question-circle fa-fw"></i> {% trans %}part_lots.location_unknown{% endtrans %}
|
||||
|
|
13
templates/Parts/lists/store_location_list.html.twig
Normal file
13
templates/Parts/lists/store_location_list.html.twig
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% extends "base.html.twig" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}parts_list.storelocation.title{% endtrans %} {{ entity.name }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'storelocation.label'} %}
|
||||
|
||||
{% include "Parts/lists/_parts_list.html.twig" %}
|
||||
|
||||
{% endblock %}
|
13
templates/Parts/lists/supplier_list.html.twig
Normal file
13
templates/Parts/lists/supplier_list.html.twig
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% extends "base.html.twig" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}parts_list.supplier.title{% endtrans %} {{ entity.name }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% include "Parts/lists/_info_card.html.twig" with {'header_label': 'supplier.label'} %}
|
||||
|
||||
{% include "Parts/lists/_parts_list.html.twig" %}
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue