Add html template for executing commands

This commit is contained in:
raul 2024-06-05 09:45:59 +02:00
parent be646ca639
commit 3541a149cf
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tiamat Dashboard</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/style.css" rel="stylesheet">
<script href="htmx.js" integrity="sha384-qbtR4rS9RrUMECUWDWM2+YGgN3U4V4ZncZ0BvUcg9FGct0jqXz3PUdVpU1p0yrXS"
crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div id="main">
<p>Hello {{ .UserAgent }}</p>
<hr>
<div id=command>
</div>
<input type="text" name="command" value="" hx-post="command/{{ .Client.ClientID }}" hx-target="command"
hx-trigger="keyup[keyCode==13]">
<hr>
</div>
</div>
</body>
</html>