mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 07:34:06 +00:00
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{{.ServiceName}}</title>
|
|
<link rel="stylesheet" href="/theme/style.css">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>{{.ServiceName}}</h1>
|
|
</header>
|
|
<main>
|
|
<form method="GET" action="/">
|
|
<button type="submit">Home</button>
|
|
</form>
|
|
|
|
<h2>Create User</h2>
|
|
<form method="POST" action="/manage/users">
|
|
<input type="hidden" name="action" value="create"/>
|
|
<input type="hidden" name="offset" value="{{.Offset}}"/>
|
|
<div>
|
|
<label for="field_name">Name:</label>
|
|
<input type="text" name="name" id="field_name" required/>
|
|
</div>
|
|
<div>
|
|
<label for="field_username">Username:</label>
|
|
<input type="text" name="username" id="field_username" required/>
|
|
</div>
|
|
<div>
|
|
<label for="field_email">Email:</label>
|
|
<p>Using an `@{{.Namespace}}` email address will automatically verify as it is owned by this login
|
|
service.</p>
|
|
<input type="text" name="email" id="field_email" required/>
|
|
</div>
|
|
<div>
|
|
<label for="field_role">Roles:</label>
|
|
<input type="text" name="roles" id="field_roles" value="{{.EditUser.Roles}}" size="100"/>
|
|
</div>
|
|
<div>
|
|
<label for="field_active">Active: <input type="checkbox" name="active" id="field_active"
|
|
checked/></label>
|
|
</div>
|
|
<button type="submit">Create</button>
|
|
</form>
|
|
</main>
|
|
</body>
|
|
</html>
|