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.

39 lines
1.8 KiB

  1. .modal#modal-admin-users-create
  2. .modal-background
  3. .modal-container
  4. .modal-content
  5. header.is-blue
  6. span Create / Authorize User
  7. p.modal-notify(v-bind:class='{ "is-active": loading }'): i
  8. section
  9. label.label Email address:
  10. p.control.is-fullwidth
  11. input.input(type='text', placeholder='e.g. john.doe@company.com', v-model='email')
  12. section
  13. label.label Provider:
  14. p.control.is-fullwidth
  15. select(v-model='provider')
  16. option(value='local') Local Database
  17. if appconfig.auth.microsoft.enabled
  18. option(value='windowslive') Microsoft Account
  19. if appconfig.auth.google.enabled
  20. option(value='google') Google ID
  21. if appconfig.auth.facebook.enabled
  22. option(value='facebook') Facebook
  23. if appconfig.auth.github.enabled
  24. option(value='github') GitHub
  25. if appconfig.auth.slack.enabled
  26. option(value='slack') Slack
  27. section(v-if='provider=="local"')
  28. label.label Password:
  29. p.control.is-fullwidth
  30. input.input(type='password', placeholder='', v-model='password')
  31. section(v-if='provider=="local"')
  32. label.label Full Name:
  33. p.control.is-fullwidth
  34. input.input(type='text', placeholder='e.g. John Doe', v-model='name')
  35. footer
  36. a.button.is-grey.is-outlined(v-on:click='cancel') Discard
  37. a.button(v-on:click='create', v-if='provider=="local"', v-bind:disabled='loading', v-bind:class='{ "is-disabled": loading, "is-blue": !loading }') Create User
  38. a.button(v-on:click='create', v-if='provider!="local"', v-bind:disabled='loading', v-bind:class='{ "is-disabled": loading, "is-blue": !loading }') Authorize User