2023-08-16 21:33:26 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>HTTP boot server</title>
|
|
|
|
<link rel="stylesheet" href="/static/stylesheets/main.css">
|
2023-08-19 11:49:13 +00:00
|
|
|
<script src="/static/scripts/index.js"></script>
|
2023-08-16 21:33:26 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2023-08-19 11:49:13 +00:00
|
|
|
<div class="page-content">
|
2023-08-16 21:33:26 +00:00
|
|
|
|
2023-09-16 11:48:21 +00:00
|
|
|
<div class="header-grid">
|
2023-08-16 21:33:26 +00:00
|
|
|
|
2023-09-16 11:48:21 +00:00
|
|
|
<div class="stat-container container">
|
2023-08-19 11:49:13 +00:00
|
|
|
<h2>{{len .Clients}} enrolled clients</h2>
|
2023-09-16 11:48:21 +00:00
|
|
|
</div>
|
2023-08-16 21:33:26 +00:00
|
|
|
|
2023-09-16 11:48:21 +00:00
|
|
|
<div class="title-container container">
|
|
|
|
<h1>HTTP boot server admin page</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="client-list-grid">
|
|
|
|
{{range .Clients}}
|
|
|
|
<div class="client-container container">
|
|
|
|
<div class="client-header">
|
|
|
|
<span class="client-name">{{.Name}}</span>
|
|
|
|
<span class="client-uuid">{{.ID}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="client-content">
|
|
|
|
<div class="client-boot-options">
|
|
|
|
{{$cid := .ID}}{{range .BootOptions}}
|
|
|
|
<div class="client-boot-option{{if .Selected}} selected{{end}}"
|
|
|
|
onclick="selectBootOption('{{$cid}}', '{{.ID}}')">
|
|
|
|
<div>
|
|
|
|
<span class="boot-option-name">{{.Name}}</span>
|
|
|
|
<span class="boot-option-uuid">{{.ID}}</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span class="boot-option-path">{{.Path}}</span>
|
2023-08-16 21:33:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-16 11:48:21 +00:00
|
|
|
{{end}}
|
2023-08-16 21:33:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-16 11:48:21 +00:00
|
|
|
{{end}}
|
2023-08-19 11:49:13 +00:00
|
|
|
</div>
|
2023-09-16 11:48:21 +00:00
|
|
|
|
2023-08-16 21:33:26 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|