19 lines
728 B
HTML
19 lines
728 B
HTML
<div class="toolbar">
|
|
<h1>New Client</h1>
|
|
</div>
|
|
|
|
{{if .Error}}
|
|
<div style="margin-bottom:16px;padding:12px;border:1px solid var(--border);font-size:13px">{{.Error}}</div>
|
|
{{end}}
|
|
|
|
<form hx-post="/admin/clients/new" hx-target="body" hx-push-url="true" style="max-width:400px">
|
|
<div style="margin-bottom:16px">
|
|
<label style="display:block;font-size:12px;color:var(--fg2);margin-bottom:4px">Client Name</label>
|
|
<input type="text" name="name" required autofocus placeholder="my-server">
|
|
</div>
|
|
<div class="toolbar">
|
|
<button type="submit">Create Client</button>
|
|
<a href="/admin/clients" class="btn btn-outline" hx-get="/admin/clients" hx-target="#main-content" hx-push-url="true">Cancel</a>
|
|
</div>
|
|
</form>
|