-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (26 loc) · 870 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<head>
<title>htmx multiselect control poc</title>
<link href="https://unpkg.com/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://unpkg.com/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
<style>
/* Fixing elements overlapping */
.musel .htmx-indicator:not([class~="htmx-request"]) {
display: none;
}
</style>
</head>
<body class="p-2">
{{if .Submit}}
<div class="alert alert-success mb-2">
Selected users: {{if .SelectedUsers}}{{.SelectedUsers}}{{else}}empty{{end}}
</div>
{{end}}
<form action="/" method="post">
{{.UsersControl}}
<button type="submit" class="mt-2 btn btn-primary">Submit</button>
</form>
</body>
</html>