mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Added some missing data on supplier pages
This commit is contained in:
parent
a91ff58d84
commit
a80cf0aace
@ -8,12 +8,17 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>SKU</th>
|
<th>SKU</th>
|
||||||
<th>Supplier</th>
|
<th>Supplier</th>
|
||||||
|
<th>MPN</th>
|
||||||
<th>URL</th>
|
<th>URL</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for spart in part.supplier_parts.all %}
|
{% for spart in part.supplier_parts.all %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url 'supplier-part-detail' spart.id %}">{{ spart.SKU }}</a></td>
|
<td><a href="{% url 'supplier-part-detail' spart.id %}">{{ spart.SKU }}</a></td>
|
||||||
<td><a href="{% url 'supplier-detail' spart.supplier.id %}">{{ spart.supplier.name }}</a></td>
|
<td><a href="{% url 'supplier-detail' spart.supplier.id %}">{{ spart.supplier.name }}</a></td>
|
||||||
|
<td>
|
||||||
|
{% if spart.manufacturer %}{{ spart.manufacturer.name }}{% endif %}
|
||||||
|
{% if spart.MPN %} | {{ spart.MPN }}{% endif %}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if spart.URL %}
|
{% if spart.URL %}
|
||||||
<a href="{{ spart.URL }}">{{ spart.URL }}</a>
|
<a href="{{ spart.URL }}">{{ spart.URL }}</a>
|
||||||
|
@ -6,12 +6,7 @@
|
|||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<h3>{{ supplier.name }}</h3>
|
<h3>{{ supplier.name }}</h3>
|
||||||
<p>{{ supplier.description }}</p>
|
<p>{{ supplier.description }}</p>
|
||||||
<a href="{% url 'supplier-edit' supplier.id %}">
|
<p>{{ supplier.notes }}</p>
|
||||||
<button class="btn btn-info">Edit supplier details</button>
|
|
||||||
</a>
|
|
||||||
<a href="{% url 'supplier-delete' supplier.id %}">
|
|
||||||
<button class="btn btn-danger">Delete supplier</button>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
@ -48,21 +43,24 @@
|
|||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<tr>
|
<tr>
|
||||||
<th>SKU</th>
|
<th>SKU</th>
|
||||||
|
<th>Description</th>
|
||||||
<th>Part</th>
|
<th>Part</th>
|
||||||
<th>Manufacturer</th>
|
|
||||||
<th>MPN</th>
|
<th>MPN</th>
|
||||||
<th>URL</th>
|
<th>URL</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for part in supplier.parts.all %}
|
{% for part in supplier.parts.all %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url 'supplier-part-detail' part.id %}">{{ part.SKU }}</a></td>
|
<td><a href="{% url 'supplier-part-detail' part.id %}">{{ part.SKU }}</a></td>
|
||||||
|
<td>{{ part.description }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if part.part %}
|
{% if part.part %}
|
||||||
<a href="{% url 'part-detail' part.part.id %}">{{ part.part.name }}</a>
|
<a href="{% url 'part-detail' part.part.id %}">{{ part.part.name }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>Manufacturer name goes here</td>
|
<td>
|
||||||
<td>MPN goes here</td>
|
{% if part.manufacturer %}{{ part.manufacturer.name }}{% endif %}
|
||||||
|
{% if part.MPN %} | {{ part.MPN }}{% endif %}
|
||||||
|
</td>
|
||||||
<td>{{ part.URL }}</td>
|
<td>{{ part.URL }}</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
@ -71,6 +69,12 @@
|
|||||||
<a href="{% url 'supplier-part-create' %}?supplier={{ supplier.id }}">
|
<a href="{% url 'supplier-part-create' %}?supplier={{ supplier.id }}">
|
||||||
<button class="btn btn-success">New Supplier Part</button>
|
<button class="btn btn-success">New Supplier Part</button>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="{% url 'supplier-edit' supplier.id %}">
|
||||||
|
<button class="btn btn-info">Edit supplier details</button>
|
||||||
|
</a>
|
||||||
|
<a href="{% url 'supplier-delete' supplier.id %}">
|
||||||
|
<button class="btn btn-danger">Delete supplier</button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -22,8 +22,8 @@
|
|||||||
<tr><td>Description</td><td>{{ part.description }}</td></tr>
|
<tr><td>Description</td><td>{{ part.description }}</td></tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.manufacturer %}
|
{% if part.manufacturer %}
|
||||||
<tr><td>Manufacturer</td><td>TODO</td></tr>
|
<tr><td>Manufacturer</td><td>{% if part.manufacturer %}{{ part.manufacturer.name }}{% endif %}</td></tr>
|
||||||
<tr><td>MPN</td><td>TODO</td></tr>
|
<tr><td>MPN</td><td>{{ part.MPN }}</td></tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user