<!--
Copyright 2020 Netsyms Technologies.
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="viewlabel">

    <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">{{$route.params.labelname}} #{{$route.params.machineid}}</div>
        </div>
    </div>

    <div class="fab fab-right-bottom display-none" id="print-fab">
        <a href="#" onclick="sendPDFToPrintServer()">
            <span class="material-icons">print</span>
        </a>
    </div>

    <div class="page-content" id="pdfcanvas-container">
        <canvas id="pdf-canvas" class="display-none"></canvas>
        <p id="pdf-loading-message">Loading...</p>
    </div>

    <script>
        getPDFLabelAndDisplay("{{$route.params.machineid}}", "{{$route.params.labeltype}}");
    </script>

</div>