Browse Source

fix user edit form

pull/1/head
Rob Colbert 3 years ago
parent
commit
6adfbc014f
  1. 16
      app/views/admin/user/form.pug

16
app/views/admin/user/form.pug

@ -3,13 +3,13 @@ block content
div(uk-grid).uk-grid-small div(uk-grid).uk-grid-small
div(class="uk-width-1-1 uk-width-2-3@l") div(class="uk-width-1-1 uk-width-2-3@l")
.uk-card.uk-card-secondary.uk-card-small form(method="POST", action=`/admin/user/${userAccount._id}`).uk-form
.uk-card-header .uk-card.uk-card-secondary.uk-card-small
.uk-text-large= userAccount.displayName || userAccount.email .uk-card-header
div= userAccount.username .uk-text-large= userAccount.displayName || userAccount.email
div= userAccount.username
.uk-card-body .uk-card-body
form(method="POST", action=`/admin/user/${userAccount._id}`).uk-form
input(type="hidden", name="username", value= userAccount.username) input(type="hidden", name="username", value= userAccount.username)
input(type="hidden", name="displayName", value= userAccount.displayName) input(type="hidden", name="displayName", value= userAccount.displayName)
.uk-margin .uk-margin
@ -44,8 +44,8 @@ block content
label label
input(id="can-create-links", name="canCreateLinks", type="checkbox", checked= userAccount.permissions.canCreateLinks) input(id="can-create-links", name="canCreateLinks", type="checkbox", checked= userAccount.permissions.canCreateLinks)
| Can Create Links | Can Create Links
.uk-card-footer .uk-card-footer
button(type="submit").uk-button.uk-button-primary Update User button(type="submit").uk-button.uk-button-primary Update User
div(class="uk-width-1-1 uk-width-1-3@l") div(class="uk-width-1-1 uk-width-1-3@l")

Loading…
Cancel
Save