sample implementation

This commit is contained in:
Matthias 2021-05-09 14:30:39 +02:00
parent 9f6f69a815
commit d38c1f6c0b

View File

@ -20,20 +20,20 @@
<tr> <tr>
<td><span class='fas fa-font'></span></td> <td><span class='fas fa-font'></span></td>
<td><strong>{% trans "Part name" %}</strong></td> <td><strong>{% trans "Part name" %}</strong></td>
<td>{{ part.name }}</td> <td>{{ part.name }}{% include "clip.html"%}</td>
</tr> </tr>
{% if part.IPN %} {% if part.IPN %}
<tr> <tr>
<td></td> <td></td>
<td><strong>{% trans "IPN" %}</strong></td> <td><strong>{% trans "IPN" %}</strong></td>
<td>{{ part.IPN }}</td> <td>{{ part.IPN }}{% include "clip.html"%}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if part.revision %} {% if part.revision %}
<tr> <tr>
<td><span class='fas fa-code-branch'></span></td> <td><span class='fas fa-code-branch'></span></td>
<td><strong>{% trans "Revision" %}</strong></td> <td><strong>{% trans "Revision" %}</strong></td>
<td>{{ part.revision }}</td> <td>{{ part.revision }}{% include "clip.html"%}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if part.trackable %} {% if part.trackable %}
@ -42,7 +42,7 @@
<td><strong>{% trans "Latest Serial Number" %}</strong></td> <td><strong>{% trans "Latest Serial Number" %}</strong></td>
<td> <td>
{% if part.getLatestSerialNumber %} {% if part.getLatestSerialNumber %}
{{ part.getLatestSerialNumber }} {{ part.getLatestSerialNumber }}{% include "clip.html"%}
{% else %} {% else %}
<em>{% trans "No serial numbers recorded" %}</em> <em>{% trans "No serial numbers recorded" %}</em>
{% endif %} {% endif %}
@ -52,7 +52,7 @@
<tr> <tr>
<td><span class='fas fa-info-circle'></span></td> <td><span class='fas fa-info-circle'></span></td>
<td><strong>{% trans "Description" %}</strong></td> <td><strong>{% trans "Description" %}</strong></td>
<td>{{ part.description }}</td> <td>{{ part.description }}{% include "clip.html"%}</td>
</tr> </tr>
{% if part.variant_of %} {% if part.variant_of %}
<tr> <tr>
@ -96,7 +96,7 @@
<td></td> <td></td>
<td><strong>{% trans "Default Supplier" %}</strong></td> <td><strong>{% trans "Default Supplier" %}</strong></td>
<td><a href="{% url 'supplier-part-detail' part.default_supplier.id %}"> <td><a href="{% url 'supplier-part-detail' part.default_supplier.id %}">
{{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }} {{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }}{% include "clip.html"%}
</a></td> </a></td>
</tr> </tr>
{% endif %} {% endif %}