2024-08-23 11:55:21 +00:00
|
|
|
{{ template "base". }}
|
|
|
|
{{ define "title" }}
|
|
|
|
Admin User
|
|
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
|
|
<h2 class="mt-5">Admin user</h2>
|
|
|
|
<hr>
|
2024-08-23 19:07:13 +00:00
|
|
|
<form method="post"
|
|
|
|
action=""
|
|
|
|
name="user_form"
|
|
|
|
id="user_form"
|
|
|
|
class="needs-validation"
|
|
|
|
autocomplete="off"
|
|
|
|
novalidate>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="first_name" class="form-label">First Name</label>
|
|
|
|
<input type="text"
|
|
|
|
name="first_name"
|
|
|
|
class="form-control"
|
|
|
|
required=""
|
|
|
|
autocomplete="first_name-new">
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="last_name" class="form-label">Last Name</label>
|
|
|
|
<input type="text"
|
|
|
|
name="last_name"
|
|
|
|
class="form-control"
|
|
|
|
required=""
|
|
|
|
autocomplete="last_name-new">
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="email" class="form-label">Email</label>
|
|
|
|
<input type="text"
|
|
|
|
name="email"
|
|
|
|
class="form-control"
|
|
|
|
required=""
|
|
|
|
autocomplete="email-new">
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="password" class="form-label">Password</label>
|
|
|
|
<input type="text"
|
|
|
|
name="password"
|
|
|
|
class="form-control"
|
|
|
|
autocomplete="password-new">
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="verify_password" class="form-label">Verify Password</label>
|
|
|
|
<input type="text"
|
|
|
|
name="verify_password"
|
|
|
|
class="form-control"
|
|
|
|
autocomplete="veryfy_password-new">
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="float-start">
|
|
|
|
<a href="javascript:void(0)" class="btn btn-primary" id="saveBtn">Save Changes</a>
|
|
|
|
<a href="javascript:void(0)" class="btn btn-warning" id="cancelBtn">Cancel</a>
|
|
|
|
</div>
|
|
|
|
<div class="float-end">
|
|
|
|
<a href="javascript:void(0)" class="btn btn-danger" id="deleteBtn">Delete</a>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</form>
|
2024-08-23 11:55:21 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ define "js" }}
|
2024-08-23 19:07:13 +00:00
|
|
|
<script type="module">
|
|
|
|
import {showUser} from "/static/js/users.js"
|
|
|
|
showUser({{.API}});
|
|
|
|
</script>
|
2024-08-23 11:55:21 +00:00
|
|
|
{{ end }}
|