<!-- 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="track">

    <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">Track Item</div>
        </div>
    </div>

    <div class="fab fab-extended fab-center-bottom">
        <a href="#" onclick="scanTrackingBarcode()">
            <div class="fab-text">Scan</div>
        </a>
    </div>

    <div class="page-content">
        <div class="row justify-content-center">
            <div class="col-100 medium-60 large-50 xlarge-40">
                <div class="list no-hairlines tablet-inset elevation-tablet">
                    <ul>
                        <li class="item-content item-input">
                            <div class="item-inner">
                                <div class="item-title item-label">Tracking Code</div>
                                <div class="item-input-wrap">
                                    <input type="text" name="trackingcode" placeholder="" autocomplete="off" autocorrect="off" autocapitalize="off" />
                                    <span class="input-clear-button"></span>
                                </div>
                            </div>
                        </li>
                        <li class="item-content">
                            <a class="button button-fill" id="trackbtn"><i class="fas fa-search-location"></i> Track</a>
                        </li>
                    </ul>
                </div>

                <div class="block text-align-center noselect">
                    <i class="material-icons material-icons-24px">info</i>
                    <br />
                    Compatible with USPS, UPS, FedEx, and DHL tracking codes.
                    Can extract full delivery point address (and sometimes customer phone number)
                    from 2D FedEx and UPS Mail Innovations barcodes.
                </div>

                {{#if trackingcodehistory}}
                <div class="list no-hairlines tablet-inset elevation-tablet">
                    <ul>
                        <li class="item-divider">
                            History
                        </li>
                        {{#each trackingcodehistory}}
                        <li>
                            <div class="item-link item-content" onclick="openTrackingHistory('{{this}}')">
                                <div class="item-inner">
                                    <div class="item-title">{{this}}</div>
                                </div>
                            </div>
                        </li>
                        {{/each}}
                    </ul>
                </div>
                {{/if}}
            </div>
        </div>
    </div>

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