userSettingOptions.handlebars 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{#each settings}}
  2. <div class="control-group">
  3. {{#if isBoolean}}
  4. <label class="checkbox" for="web_conference_user_settings_{{field}}">
  5. <input name="web_conference[user_settings][{{field}}]" type="hidden" value="0">
  6. <input
  7. id="web_conference_user_settings_{{field}}"
  8. name="web_conference[user_settings][{{field}}]"
  9. type="checkbox"
  10. value="1"
  11. {{#if ../../conference_started}}disabled="disabled"{{/if}}
  12. {{#if checked}}checked{{/if}}
  13. >
  14. {{description}}
  15. </label>
  16. {{/if}}
  17. {{#if isText}}
  18. <label for="web_conference_user_settings_{{field}}">{{name}}</label>
  19. <input
  20. name="web_conference[user_settings][{{field}}]"
  21. id="web_conference_user_settings_{{field}}"
  22. type="text"
  23. value="{{value}}"
  24. {{#if ../../conference_started}}disabled="disabled"{{/if}}
  25. >
  26. {{/if}}
  27. {{#if isDatePicker}}
  28. <label for="web_conference_user_settings_{{field}}">{{name}}</label>
  29. <label class="screenreader-only" id="conference_settings_{{field}}_label">
  30. {{#t}}Pick the date and time for the following conference setting: {{/t}}
  31. {{name}}
  32. {{datepickerScreenreaderPrompt}}
  33. </label>
  34. <input
  35. class="date_entry"
  36. id="web_conference_user_settings_{{field}}"
  37. name="web_conference[user_settings][{{field}}]"
  38. size="30"
  39. type="text"
  40. value="{{value}}"
  41. {{#if ../../conference_started}}disabled="disabled"{{/if}}
  42. aria-labelledby="conference_settings_{{field}}_label"
  43. data-tooltip
  44. title="{{accessibleDateFormat}}"
  45. />
  46. {{/if}}
  47. {{#if isSelect}}
  48. <label for="web_conference_user_settings_{{field}}">{{name}}</label>
  49. <select id="web_conference_user_settings_{{field}}" name="web_conference[user_settings][{{field}}]">
  50. {{#each options}}
  51. <option value="{{value}}">{{name}}</option>
  52. {{/each}}
  53. </select>
  54. {{/if}}
  55. </div>
  56. {{/each}}