Skip to content

Commit 250e639

Browse files
committed
feat(moves): add QR code scanner for mobile devices
1 parent dea8bd8 commit 250e639

File tree

5 files changed

+456
-0
lines changed

5 files changed

+456
-0
lines changed

website/app-templates/smarty/forms/move.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
{if $f3->get('SESSION.CURRENT_USER')}
3535
<button class="btn btn-default" type="button" id="nrInventorySelectButton" title="{t}Select GeoKrety from inventory{/t}" data-toggle="modal" data-target="#modal" data-type="select-from-inventory">{fa icon="briefcase"}</button>
3636
{/if}
37+
<button class="btn btn-default" type="button" id="nrQrScanButton" title="{t}Scan QR Code{/t}" style="display:none;">{fa icon="qrcode"}</button>
3738
<button class="btn btn-default" type="button" id="nrSearchButton" title="{t}Verify Tracking Code{/t}">{fa icon="search"}</button>
3839
</span>
3940
</div>

website/app-templates/smarty/javascripts.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
{*{\GeoKrety\Assets::instance()->addJs(GK_CDN_D3_PLOT_JS) && ''}*}
2121
{*{\GeoKrety\Assets::instance()->addJs(GK_CDN_D3_PATH_JS) && ''}*}
2222
{*{\GeoKrety\Assets::instance()->addJs(GK_CDN_D3_SHAPE_JS) && ''}*}
23+
{\GeoKrety\Assets::instance()->addJs(GK_CDN_HTML5_QRCODE_JS) && ''}
2324

2425
{\Assets::instance()->renderGroup(\GeoKrety\Assets::instance()->getAssets('footer')) nofilter}
2526
<script type="text/javascript" nonce="{\GeoKrety\Service\SecurityHeaders::instance()->getNonce()}">

0 commit comments

Comments
 (0)