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.

35 lines
1.6 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. section(v-if='provider=="local"')
  24. label.label Password:
  25. p.control.is-fullwidth
  26. input.input(type='password', placeholder='', v-model='password')
  27. section(v-if='provider=="local"')
  28. label.label Full Name:
  29. p.control.is-fullwidth
  30. input.input(type='text', placeholder='e.g. John Doe', v-model='name')
  31. footer
  32. a.button.is-grey.is-outlined(v-on:click='cancel') Discard
  33. 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
  34. 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