editConferenceForm.handlebars 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <form action="{{conferenceData.url}}" class="form-dialog form-horizontal" method="{{conferenceData.http_method}}">
  2. <input type="hidden" name="_method" value="{{conferenceData.http_method}}">
  3. <div style="margin:0;padding:0;display:inline">
  4. <input name="authenticity_token" type="hidden" value="{{settings.auth_token}}">
  5. </div>
  6. <div class="control-group">
  7. <label class="control-label" for="web_conference_title">{{#t "name"}}Name{{/t}}</label>
  8. <div class="controls">
  9. <input id="web_conference_title" name="web_conference[title]" type="text" value="{{conferenceData.title}}" maxlength="255">
  10. </div>
  11. </div>
  12. <div class="control-group">
  13. <label class="control-label" for="web_conference_conference_type">{{#t "conference_type"}}Type{{/t}}</label>
  14. <div class="controls">
  15. <select id="web_conference_conference_type" name="web_conference[conference_type]" {{# if settings.is_editing}}disabled='disabled'{{/if}}>
  16. {{#each conferenceTypes}}
  17. <option value="{{type}}" {{#if selected}}selected="selected"{{/if}}>{{name}}</option>
  18. {{/each}}
  19. </select>
  20. {{# if settings.is_editing}}
  21. {{# if conferenceData.has_advanced_settings}}
  22. <a href="{{conferenceData.url}}/settings" target="_blank" class="advanced_settings">
  23. {{#t "advanced_settings"}}Manage Advanced Settings...{{/t}}
  24. </a>
  25. {{/if}}
  26. {{/if}}
  27. </div>
  28. </div>
  29. <div class="control-group">
  30. <label class="control-label" for="web_conference_duration">{{#t "duration"}}Duration{{/t}}</label>
  31. <div class="controls form-inline">
  32. <input id="web_conference_duration" name="web_conference[duration]" type="text"
  33. data-restore-value="{{conferenceData.restore_duration}}"
  34. value="{{conferenceData.duration}}"
  35. maxlength="8"
  36. {{#if settings.disable_duration_changes}}disabled='disabled'{{/if}}> {{#t "duration_in_minutes"}}minutes{{/t}}
  37. </div>
  38. </div>
  39. <div class="control-group">
  40. <label class="control-label" for="web_conference_options">{{#t "options"}}Options{{/t}}</label>
  41. <div class="controls">
  42. <div class="web_conference_user_settings"></div>
  43. <label class="checkbox" for="web_conference_long_running">
  44. {{checkbox "web_conference.long_running"
  45. checked=conferenceData.long_running
  46. disabled=settings.disable_duration_changes}}
  47. {{#t "long_running"}}No time limit (for long-running conferences){{/t}}
  48. </label>
  49. </div>
  50. </div>
  51. <div class="control-group">
  52. <label class="control-label" for="web_conference_description">{{#t "description"}}Description{{/t}}</label>
  53. <div class="controls">
  54. <textarea cols="40" id="web_conference_description" name="web_conference[description]" rows="6">{{conferenceData.description}}</textarea>
  55. </div>
  56. </div>
  57. <legend>{{#t "members"}}Members{{/t}}</legend>
  58. <div class="web_conference_member_user_settings"></div>
  59. <label class="checkbox" for="user_all">
  60. {{checkbox "user.all" class="all_users_checkbox" checked=inviteAll}}
  61. {{#if context_is_group }}
  62. {{#t "invite_all.group"}}Invite All Group Members{{/t}}
  63. {{else}}
  64. {{#t "invite_all.course"}}Invite All Course Members{{/t}}
  65. {{/if}}
  66. </label>
  67. <div>
  68. <ul id="members_list" style="border: 1px solid #333; padding: 10px; overflow-y: auto; max-height: 150px;">
  69. {{# each users}}
  70. <li class="member user_{{id}}">
  71. <label class="checkbox" for="user_{{id}}">
  72. <input name="user[{{id}}]" type="hidden" value="0">
  73. <input id="user_{{id}}" name="user[{{id}}]" type="checkbox" value="1">
  74. {{name}}
  75. </label>
  76. </li>
  77. {{/each}}
  78. </ul>
  79. </div>
  80. </form>