mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-08-03 23:21:44 +00:00
63 lines
No EOL
2 KiB
Twig
63 lines
No EOL
2 KiB
Twig
{% extends "main_card.html.twig" %}
|
|
|
|
{% block title %}Multi Build{% endblock %}
|
|
|
|
|
|
{% block card_title %}<i class="fas fa-chart-bar fa-fw"></i>
|
|
Multi Build{% endblock %}
|
|
|
|
{% block card_body %}
|
|
|
|
<div class="alert {% if can_build %}alert-success{% else %}alert-danger{% endif %}" role="alert">
|
|
{% if not can_build %}
|
|
<h5><i class="fa-solid fa-circle-exclamation fa-fw"></i>Parts needed without supplier.</h5>
|
|
<ul>
|
|
{% for bom_entry in needs_ordering %}
|
|
<li>
|
|
<b><a href="{{ entity_url(bom_entry.part) }}">{{ bom_entry.part.name }}</a></b>
|
|
{{ bom_entry.needed }} Needed.
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if orders_per_supplier is not null %}
|
|
<table class="table table-striped table-hover">
|
|
{% for supplier in orders_per_supplier %}
|
|
|
|
<thead>
|
|
<tr>
|
|
<th colspan=7>
|
|
{% if supplier.supplier is not null %}{{ supplier.supplier }}{% else %}No supplier{% endif %}
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th>{% trans %}name.label{% endtrans %}</th>
|
|
<th>{% trans %}orderdetails.edit.supplierpartnr{% endtrans %}</th>
|
|
<th>{% trans %}description.label{% endtrans %}</th>
|
|
<th>Quantity Needed</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
{% for item in supplier.items %}
|
|
<tr>
|
|
<td/>
|
|
<td><a href="{{ entity_url(item.part) }}">{{ item.part.name }}</a></td>
|
|
<td><a href="{{ item.link }}">{{ item.pn }}</a></td>
|
|
<td>{{ item.part.description }}</td>
|
|
<td>{{ item.needed }}</td>
|
|
<td/>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
{% endif %}
|
|
|
|
{{ form(form) }}
|
|
|
|
{% endblock %} |