passerelle/passerelle/apps/qrcode/templates/qrcode/qrcode-reader.html

37 lines
1.2 KiB
HTML

{% load i18n %}
{% load static %}
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/json" id="qrcode-reader-i18n">
{
"close": "{% trans 'Close' %}",
"expired": "{% trans 'QR code Expired' %}",
"from": "{% trans 'From' %}",
"invalid_content": "{% trans 'This QR code isn\'t supported by this application.' %}",
"invalid_signature": "{% trans 'Signature verification failed.' %}",
"invalid_title": "Invalid QR Code",
"not_supported": "{% trans 'QR code reader isn\'t supported on your platform. Please update your browser.' %}",
"not_yet_valid": "{% trans 'QR code not yet valid' %}",
"to": "{% trans 'To' %}",
"valid": "{% trans 'Valid QR code' %}"
}
</script>
<link rel="stylesheet" href="{% static 'qrcode/css/style.css' %}">
<script type="module" src="{% static 'qrcode/js/qrcode-reader.js' %}"></script>
</head>
<body>
{% if not started %}
{% trans "Reader isn't usable yet." %}
{% elif expired %}
{% trans "Reader has expired." %}
{% else %}
<qrcode-reader verify-key="{{ verify_key }}">
</qrcode-reader>
{% endif %}
</body>
</html>