You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.0 KiB

  1. extends ./_layout.pug
  2. block adminContent
  3. #page-type-admin-profile
  4. .hero
  5. h1.title#title My Profile
  6. h2.subtitle Profile and authentication info
  7. .form-sections
  8. .columns.is-gapless
  9. .column.is-two-thirds
  10. section
  11. label.label Email
  12. p.control.is-fullwidth
  13. input.input(type='text', placeholder='Email', value=user.email, disabled)
  14. if user.provider === 'local'
  15. section
  16. label.label Password
  17. p.control.is-fullwidth
  18. input.input(type='password', placeholder='Password', value='********', v-model='password')
  19. section
  20. label.label Verify Password
  21. p.control.is-fullwidth
  22. input.input(type='password', placeholder='Password', value='********', v-model='passwordVerify')
  23. section
  24. label.label Display Name
  25. p.control.is-fullwidth
  26. input.input(type='text', placeholder='John Smith', v-model='name')
  27. section
  28. button.button.is-green(v-on:click='saveUser')
  29. i.icon-check
  30. span Save Changes
  31. .column
  32. .panel-aside
  33. label.label Provider
  34. p.control.account-profile-provider
  35. case user.provider
  36. when 'local': i.icon-server
  37. when 'windowslive': i.icon-windows2.is-blue
  38. when 'google': i.icon-google.is-blue
  39. when 'facebook': i.icon-facebook.is-indigo
  40. when 'github': i.icon-github.is-grey
  41. when 'slack': i.icon-slack.is-purple
  42. when 'ldap': i.icon-arrow-repeat-outline
  43. default: i.icon-warning
  44. = t('auth:providers.' + user.provider)
  45. label.label Member since
  46. p.control= userMoment(user.createdAt).format('LL')
  47. label.label Last Profile Update
  48. p.control= userMoment(user.updatedAt).format('LL')
  49. script(type='text/javascript').
  50. var usrDataName = "!{user.name}";