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.

44 lines
1.4 KiB

  1. extends ./_layout.pug
  2. block adminContent
  3. .hero
  4. h1.title#title My Profile
  5. h2.subtitle Profile and authentication info
  6. .form-sections
  7. .columns.is-gapless
  8. .column.is-two-thirds
  9. section
  10. label.label Email
  11. p.control.is-fullwidth
  12. input.input(type='text', placeholder='Email', value=user.email, disabled=(user.provider !== 'local'))
  13. if user.provider == 'local'
  14. section
  15. label.label Password
  16. p.control.is-fullwidth
  17. input.input(type='password', placeholder='Password', value='********')
  18. section
  19. label.label Verify Password
  20. p.control.is-fullwidth
  21. input.input(type='password', placeholder='Password', value='********')
  22. section
  23. label.label Display Name
  24. p.control.is-fullwidth
  25. input.input(type='text', placeholder='John Smith', value=user.name)
  26. section
  27. button.button.is-green
  28. i.icon-check
  29. span Save Changes
  30. .column
  31. .panel
  32. label.label Provider
  33. p.control.account-profile-provider
  34. case user.provider
  35. when 'local': i.fa.fa-database
  36. when 'windowslive': i.fa.fa-windows.is-blue
  37. when 'google': i.fa.fa-google.is-blue
  38. when 'facebook': i.fa.fa-facebook.is-purple
  39. default: i.fa.fa-question-circle
  40. = t('auth:providers.' + user.provider)
  41. label.label Member since
  42. p.control= userMoment(user.createdAt).format('LL')
  43. label.label Last Profile Update
  44. p.control= userMoment(user.updatedAt).format('LL')