2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Remove old dependency on django_qr_code

This commit is contained in:
Oliver Walters
2021-02-22 15:00:12 +11:00
parent 828b3adc49
commit 23da591c22
4 changed files with 70 additions and 10 deletions

View File

@ -1,12 +1,14 @@
{% load qr_code %}
{% load barcode %}
{% load i18n %}
<div class='container' style='width: 80%;'>
{% if qr_data %}
<div class='qr-container'>
<img class='qr-code' src="{% qr_url_from_text qr_data size='m' image_format='png' error_correction='m' %}" alt="QR Code">
<img src="{% qr_code qr_data %}">
</div>
{% else %}
<b>Error:</b><br>
{{ error_msg }}
<div class='alert alert-block alert-warning'>
{% trans "QR data not provided" %}
</div>
{% endif %}
</div>