Display UUID and QR code on stockitem page

- The actual display of this can be improved upon at a later stage
This commit is contained in:
Oliver Walters 2019-04-13 01:14:24 +10:00
parent b64e584b52
commit 7b68bac32f

View File

@ -2,6 +2,8 @@
{% load static %}
{% block content %}
{% load qr_code %}
<div class='row'>
<div class='col-sm-6'>
<h3>Stock Item Details</h3>
@ -29,11 +31,17 @@
</div>
</div>
{% qr_from_text item.uuid size="s" image_format="png" error_correction="L" %}
<table class="table table-striped">
<tr>
<td>Part</td>
<td><a href="{% url 'part-stock' item.part.id %}">{{ item.part.name }}</td>
</tr>
<tr>
<td>UUID</td>
<td>{{ item.uuid }}</td>
</tr>
{% if item.belongs_to %}
<tr>
<td>Belongs To</td>