41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
{{ define "kontor/create-user.html" }}
|
|
{{ template "header.html" .}}
|
|
{{ template "admin-menu.html" .}}
|
|
<ul class="nav nav-tabs">
|
|
<li role="presentation" class="active"><a href="/admin/user">User</a></li>
|
|
<li role="presentation"><a href="/admin/data">Data</a></li>
|
|
</ul>
|
|
|
|
<div class="panel panel-default col-sm-6">
|
|
<div class="panel-body">
|
|
<!--If there's an error, display the error-->
|
|
{{ if .ErrorTitle}}
|
|
<p class="bg-danger">
|
|
{{.ErrorTitle}}: {{.ErrorMessage}}
|
|
</p>
|
|
{{end}}
|
|
<!--Create a form that POSTs to the `/u/register` route-->
|
|
<form class="form" action="/admin/user/create" method="POST">
|
|
<div class="form-group">
|
|
<label for="username">Username</label>
|
|
<input type="text" class="form-control" id="username" name="username" placeholder="Username">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="firstname">First Name</label>
|
|
<input type="text" class="form-control" id="firstname" name="firstname" placeholder="First Name">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" name="password" class="form-control" id="password" placeholder="Password">
|
|
</div>
|
|
<div class="form-check">
|
|
<input type="checkbox" class="form-check-input" id="admin">
|
|
<label class="form-check-label" for="admin">Administrator</label>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Add</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{ template "footer.html" .}}
|
|
{{end}}
|