2022-02-14 10:56:05 +00:00
|
|
|
{% extends 'components/modal.html' %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block modal-title %}
|
2022-02-15 10:38:57 +00:00
|
|
|
{% blocktrans %}
|
|
|
|
Scan Barcode
|
|
|
|
{% endblocktrans %}
|
2022-02-14 10:56:05 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-body %}
|
2022-02-27 07:22:44 +00:00
|
|
|
<div id="barcode-scanner" class="block"></div>
|
2022-02-15 10:38:57 +00:00
|
|
|
|
|
|
|
<div id="barcode-status" class="block">
|
|
|
|
<div class="grant-access is-hidden">
|
2022-02-27 04:19:26 +00:00
|
|
|
<span class="is-size-5">{% trans "Requesting camera..." %}</span></br>
|
2022-02-15 10:38:57 +00:00
|
|
|
<span>{% trans "Grant access to the camera to scan a book's barcode." %}</span>
|
|
|
|
</div>
|
|
|
|
<span class="is-size-5 access-denied is-hidden">{% trans "Could not access camera." %}</span>
|
|
|
|
<div class="scanning is-hidden">
|
|
|
|
<div class="select is-small">
|
|
|
|
<select id="barcode-camera-list">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<span class="is-size-5">{% trans "Scanning..." context "barcode scanner" %}</span><br/>
|
|
|
|
<span>{% trans "Align your book's barcode with the camera." %}</span>
|
|
|
|
</div>
|
|
|
|
<div class="found is-hidden">
|
2022-02-27 04:19:26 +00:00
|
|
|
<span class="is-size-5">{% trans "ISBN scanned, searching..." context "barcode scanner" %}</span><br/>
|
2022-02-15 10:38:57 +00:00
|
|
|
<span class="isbn"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-footer %}
|
|
|
|
<button class="button" type="button" data-modal-close>{% trans "Cancel" %}</button>
|
2022-02-14 10:56:05 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|