http-boot-server/bootserver/templates/index.html

52 lines
1.8 KiB
HTML
Raw Normal View History

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">
<script src="/static/scripts/index.js"></script>
2023-08-16 21:33:26 +00:00
</head>
<body>
<div class="page-content">
2023-08-16 21:33:26 +00:00
<div class="title-container container">
2023-08-16 21:33:26 +00:00
<h1>HTTP boot server admin page</h1>
</div>
<div class="main-container container">
<div class="client-list">
<h2>{{len .Clients}} enrolled clients</h2>
2023-08-16 21:33:26 +00:00
{{range .Clients}}
<div class="client-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>
</div>
2023-08-16 21:33:26 +00:00
</div>
{{end}}
2023-08-16 21:33:26 +00:00
</div>
</div>
</div>
{{end}}
2023-08-16 21:33:26 +00:00
</div>
</div>
2023-08-16 21:33:26 +00:00
</div>
</body>
</html>