Newer
Older
tracker-web-ui / src / main / resources / templates / index.html
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Device Tracking</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
    <h1 class="mb-4">Device Tracking System</h1>

    <form action="/track" method="get" class="mb-4">
        <div class="row">
            <div class="col-md-4">
                <label for="deviceGuid" class="form-label">Select Device:</label>
                <select class="form-select" id="deviceGuid" name="deviceGuid" required>
                    <option value="">-- Select Device --</option>
                    <option th:each="guid : ${deviceGuids}"
                            th:value="${guid}"
                            th:text="${guid}"></option>
                </select>
            </div>
            <div class="col-md-3">
                <label for="start" class="form-label">Start Time:</label>
                <input type="datetime-local" class="form-control" id="start" name="start">
            </div>
            <div class="col-md-3">
                <label for="end" class="form-label">End Time:</label>
                <input type="datetime-local" class="form-control" id="end" name="end">
            </div>
            <div class="col-md-2 d-flex align-items-end">
                <button type="submit" class="btn btn-primary">Track Device</button>
            </div>
        </div>
    </form>

    <div class="alert alert-info" role="alert">
        Select a device and optionally specify a time range to view its movement on the map.
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>