Label creation and print

This commit is contained in:
2022-04-01 10:19:41 +02:00
parent 734598a379
commit 8b48741816
3 changed files with 138 additions and 30 deletions

View File

@@ -4,17 +4,33 @@
{% block title %}Container: {{ container.named_id }}{% endblock %}
{% block content %}
===== Print Label Content =====
<h1>Print Container Label</h1>
<!-- Action buttons -->
<div class="row">
<div class="col-sm-12">
Label created for container {{ container.named_id }} of type {{ container.container_type.named_id }}
Label created for container {{ container.named_id }} of type {{ container.container_type.named_id }}:
<br />
<img class="img-fluid shadow p-3 mb-5 bg-body rounded" src="{{ barcode_img }}">
</div>
<div class="col-sm-12">
<form method="gest">
{% csrf_token %}
<label for="num_copies">Number of copies:</label><input type="number" id="num_copies" size="2" min="1" max="8" name="num_copies" value="1">
<input type="submit" class="btn btn-primary" value="Print">
</form>
</div>
<div class="col-sm-12">
<!--
{% if logs %}
{% for msg in logs %}
{{ msg }}<br />
{% endfor %}
{% else %}
no messages
{% endif %}
-->
</div>
</div>
<!-- End Action buttons -->