cup/storage/templates/admin_useradd.html

28 lines
847 B
HTML
Raw Normal View History

2024-12-04 08:39:08 -05:00
<!DOCTYPE html>
<html lang="en">
{{template "page_head" "Goffee"}}
<body>
<div class="container">
<h2>Add user form</h2>
{{if .ErrorMessages }}<div class="alert alert-dismissible alert-warning">
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
<ul>
{{range $i, $a := .ErrorMessages}}
<li>{{$a}}</li>
{{end}}
</ul>
</div>{{end}}
<form method="POST" id="add_user" action="/admin/users/add">
{{template "form_input" .FieldName}}
{{template "form_input" .FieldFullname}}
{{template "form_input" .FieldEmail}}
{{template "form_checkbox" .FieldRoles}}
2024-12-04 08:39:08 -05:00
{{template "form_input" .FieldPassword}}
<hr>
{{template "form_button" .SubmitButton}}
</form>
</div>
{{template "page_footer"}}
</body>
</html>