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.

53 lines
2.1 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 'azure': i.icon-windows2.is-blue
  39. when 'google': i.icon-google.is-blue
  40. when 'facebook': i.icon-facebook.is-indigo
  41. when 'github': i.icon-github.is-grey
  42. when 'slack': i.icon-slack.is-purple
  43. when 'ldap': i.icon-arrow-repeat-outline
  44. default: i.icon-warning
  45. = t('auth:providers.' + user.provider)
  46. label.label Member since
  47. p.control= userMoment(user.createdAt).format('LL')
  48. label.label Last Profile Update
  49. p.control= userMoment(user.updatedAt).format('LL')
  50. script(type='text/javascript').
  51. var usrDataName = "!{user.name}";