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.3 KiB

  1. extends ./_layout.pug
  2. block adminContent
  3. #page-type-admin-profile
  4. .hero
  5. h1.title#title= t('nav.myprofile')
  6. h2.subtitle= t('admin:profile.subtitle')
  7. .form-sections
  8. .columns.is-gapless
  9. .column.is-two-thirds
  10. section
  11. label.label= t('admin:profile.email')
  12. p.control.is-fullwidth
  13. input.input(type='text', placeholder=t('admin:profile.email'), value=user.email, disabled)
  14. if user.provider === 'local'
  15. section
  16. label.label= t('admin:profile.password')
  17. p.control.is-fullwidth
  18. input.input(type='password', placeholder=t('admin:profile.password'), value='********', v-model='password')
  19. section
  20. label.label= t('admin:profile.passwordverify')
  21. p.control.is-fullwidth
  22. input.input(type='password', placeholder=t('admin:profile.password'), value='********', v-model='passwordVerify')
  23. section
  24. label.label= t('admin:profile.displayname')
  25. p.control.is-fullwidth
  26. input.input(type='text', placeholder=t('admin:profile.displaynameexample'), v-model='name')
  27. section
  28. button.button.is-green(v-on:click='saveUser')
  29. i.icon-check
  30. span= t('admin:profile.savechanges')
  31. .column
  32. .panel-aside
  33. label.label= t('admin:profile.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= t('admin:profile.membersince')
  47. p.control= moment(user.createdAt).format('LL')
  48. label.label= t('admin:profile.lastprofileupdate')
  49. p.control= moment(user.updatedAt).format('LL')
  50. script(type='text/javascript').
  51. var usrDataName = "!{user.name}";