tiamat/cmd/templates/command.html

32 lines
887 B
HTML
Raw Normal View History

<!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 src="/htmx.js" integrity="sha384-qbtR4rS9RrUMECUWDWM2+YGgN3U4V4ZncZ0BvUcg9FGct0jqXz3PUdVpU1p0yrXS"
crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div id="main">
<p>Hello {{ .UserAgent }}</p>
<hr>
<h2>Executing commands for {{ .Client.ClientBasicInfo.Hostname }}</h2>
<hr>
<div id=command>
</div>
<form hx-post="/command/{{ .Client.ClientID }}" hx-target="#command" hx-on--after-request="this.reset()">
<label><input type="text" name="cmd" value=""></label>
<button type="submit" id="but">Submit</button>
</form>
<hr>
</div>
</div>
</body>
</html>