Update sample user admin to user authority, add revoke role to auth
This commit is contained in:
parent
43f3ad986e
commit
d431963181
5 changed files with 175 additions and 3 deletions
|
|
@ -15,7 +15,8 @@
|
|||
<form method="POST" id="add_user" action="/admin/users/add">
|
||||
{{template "form_input" .FieldName}}
|
||||
{{template "form_input" .FieldFullname}}
|
||||
{{template "form_input" .FieldEmail}}
|
||||
{{template "form_input" .FieldEmail}}
|
||||
{{template "form_checkbox" .FieldRoles}}
|
||||
{{template "form_input" .FieldPassword}}
|
||||
<hr>
|
||||
{{template "form_button" .SubmitButton}}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@
|
|||
<form method="POST" id="add_user" action="/admin/users/edit/{{.FieldKey.Value}}">
|
||||
{{template "form_input" .FieldName}}
|
||||
{{template "form_input" .FieldFullname}}
|
||||
{{template "form_input" .FieldEmail}}
|
||||
{{template "form_input" .FieldEmail}}
|
||||
{{template "form_checkbox" .FieldRoles}}
|
||||
{{template "form_input" .FieldPassword}}
|
||||
{{template "form_input" .FieldKey}}
|
||||
{{template "form_button" .SubmitButton}}
|
||||
|
|
|
|||
12
storage/templates/nopermission.html
Normal file
12
storage/templates/nopermission.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{template "page_head" "No permission"}}
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
You do not have permission to visit this page.
|
||||
</div>
|
||||
</div>
|
||||
{{template "page_footer"}}
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue