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

    <div class="navbar">
        <div class="navbar-bg"></div>
        <div class="navbar-inner">
            <div class="title">MachineManager</div>
            <div class="right">
                <a class="link" href="/settings">
                    <i class="material-icons if-md">settings</i>
                    <i class="fas fa-cog if-not-md"></i>
                </a>
            </div>
        </div>
    </div>

    <div class="page-content">
        <!-- Searchbar is part of scrollable page content -->
        <form class="searchbar inset margin-top" id="machinesearchbar">
            <div class="searchbar-inner">
                <div class="searchbar-input-wrap">
                    <input type="search" placeholder="Machine ID">
                    <i class="searchbar-icon"></i>
                    <span class="input-clear-button"></span>
                </div>
                <span class="searchbar-disable-button">Cancel</span>
            </div>
        </form>


        <div class="list elevation-2 inset">
            <ul>
                <li class="item-divider">
                    History
                </li>
                {{#each machinehistory}}
                <li>
                    <div class="item-link item-content" onclick="openMachineInfo('{{this}}')">
                        <div class="item-inner">
                            <div class="item-title">{{this}}</div>
                        </div>
                    </div>
                </li>
                {{/each}}
            </ul>
        </div>
    </div>
    <script src="assets/js/home.js"></script>
</div>