studentDialog.handlebars 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <div class="registration-dialog">
  2. <form class="form-horizontal bootstrap-form" method="post" action="/users">
  3. <div class="control-group">
  4. <label class="control-label" for="student_join_code">{{#t "labels.join_code"}}Join Code{{/t}}</label>
  5. <div class="controls">
  6. <input type="text" id="student_join_code" name="user[self_enrollment_code]">
  7. </div>
  8. </div>
  9. <div class="control-group">
  10. <label class="control-label" for="student_name">{{#t "labels.name"}}Full Name{{/t}}</label>
  11. <div class="controls">
  12. <input type="text" id="student_name" name="user[name]">
  13. </div>
  14. </div>
  15. <div class="control-group">
  16. <label class="control-label" for="student_username">{{#t "labels.username"}}Username{{/t}}</label>
  17. <div class="controls">
  18. <input type="text" id="student_username" name="pseudonym[unique_id]">
  19. </div>
  20. </div>
  21. <div class="control-group">
  22. <label class="control-label" for="student_password">{{#t "labels.password"}}Password{{/t}}</label>
  23. <div class="controls">
  24. <input type="password" id="student_password" name="pseudonym[password]">
  25. </div>
  26. </div>
  27. <div class="control-group">
  28. <label class="control-label" for="student_password_confirmation">{{#t "labels.password_confirmation"}}Confirm Password{{/t}}</label>
  29. <div class="controls">
  30. <input type="password" id="student_password_confirmation" name="pseudonym[password_confirmation]">
  31. </div>
  32. </div>
  33. {{#if terms_required}}
  34. <div class="control-group">
  35. <div class="controls">
  36. <label class="checkbox">
  37. <input type="checkbox" name="user[terms_of_use]" value="1">
  38. {{{terms_html}}}
  39. </label>
  40. </div>
  41. </div>
  42. {{/if}}
  43. <div class="control-group">
  44. <div class="controls">
  45. <input type="hidden" name="user[initial_enrollment_type]" value="student">
  46. <input type="hidden" name="self_enrollment" value="1">
  47. <input type="hidden" name="pseudonym_type" value="username">
  48. <button class="btn btn-primary" type="submit">{{#t "buttons.start_learning"}}Start Learning{{/t}}</button>
  49. </div>
  50. </div>
  51. </form>
  52. </div>