<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<div class="page" data-name="scanner">

    <div class="navbar">
        <div class="navbar-bg"></div>
        <div class="navbar-inner">
            <div class="left">
                <a href="#" class="link icon-only back">
                    <i class="icon icon-back"></i>
                </a>
            </div>
            <div class="title">Review Entries</div>
            <div class="right">
                <a class="link text-color-red" onclick="confirmDeleteScanEntries()">
                    <i class="icon material-icons">delete</i>
                </a>
            </div>
        </div>
    </div>

    <div class="page-content">
        <div class="row justify-content-center">
            <div class="col-100 medium-60 large-50 xlarge-40 elevation-tablet margin-top-tablet">
                {{#if entries}}
                <div class="list media-list no-margin-top no-hairlines">
                    <ul>
                        {{#each entries}}
                        <li style="padding-top: 2rem; padding-bottom: 2rem;">
                            <div class="item-content">
                                <div class="item-inner">
                                    <div style="background-color: white; display: flex; justify-content: center; padding-left: 1rem; padding-right: 1rem;">
                                        <svg class="barcode_entry" id="barcode_{{code}}" data-barcode="{{code}}"></svg>
                                    </div>
                                    <div class="item-text text-align-center">{{event}}</div>
                                    <div class="item-text text-align-center">{{date}}</div>
                                    {{#if form3849}}
                                    <h2 class="item-text text-align-center">Form 3849:</h2>
                                    <div style="background-color: white; display: flex; justify-content: center; padding-left: 1rem; padding-right: 1rem;">
                                        <svg class="barcode_entry" id="barcode_{{form3849}}" data-barcode="{{form3849}}"></svg>
                                    </div>
                                    {{/if}}
                                </div>
                            </div>
                        </li>
                        {{/each}}
                    </ul>
                </div>
                {{else}}
                <div class="block text-align-center">
                    <img style="width: 60%; max-width: 300px; max-height: 40vh;" src="assets/images/barcode-dashed.svg" class="margin-vertical" />
                    <h2 class="margin-top">
                        No scan entries.
                    </h2>
                </div>
                {{/if}}
            </div>
        </div>
    </div>

    <script src="assets/js/toolbox_scannerentries.js"></script>
</div>