editAssignment.handlebars 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <div id='edit_assignment_form' style='padding: 5px; width: 400px'>
  2. <div class="event-details-content">
  3. <table class="formtable" style="width: 100%;" role="presentation">
  4. <tr>
  5. <td><label for="assignment_title">{{#t "title"}}Title:{{/t}}</label></td>
  6. <td><input id="assignment_title" name="assignment[name]" size="30" maxlength="255" style="width: 200px;" type="text" value="{{title}}"/></td>
  7. </tr>
  8. <tr>
  9. <td>
  10. <label for="assignment_due_at">{{#t "due"}}Due:{{/t}}</label>
  11. <label class="screenreader-only" id="calendar_assignment_due_date_accessible_label">
  12. {{#t}}Due on date{{/t}}
  13. {{datepickerScreenreaderPrompt}}
  14. </label>
  15. </td>
  16. <td>
  17. <input class="datetime_field"
  18. id="assignment_due_at"
  19. name="assignment[due_at]"
  20. value="{{fcMomentToDateString date datePickerFormat}}"
  21. size="30"
  22. style="width: 150px;"
  23. type="text"
  24. aria-labelledby="calendar_assignment_due_date_accessible_label"
  25. data-tooltip title="{{accessibleDateFormat}}"/>
  26. </td>
  27. </tr>
  28. <tr class="context_select">
  29. <td><label for="assignment_context">{{#t "calendar"}}Calendar:{{/t}}</label></td>
  30. <td>
  31. <select id="assignment_context" class="context_id">
  32. {{#each contexts}}
  33. {{#if can_create_assignments}}
  34. <option value="{{asset_string}}">{{name}}</option>
  35. {{/if}}
  36. {{/each}}
  37. </select>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td><label for="assignment_group">{{#t "group"}}Group:{{/t}}</label></td>
  42. <td class="assignment_group_select">
  43. <select id="assignment_group" class="assignment_group" name="assignment[assignment_group_id]" aria-label="{{#t "group"}}Group:{{/t}}">
  44. <option value="new">[ New Group ]</option>
  45. </select>
  46. </td>
  47. </tr>
  48. {{#if postToSISEnabled}}
  49. <tr>
  50. <td>
  51. <label class="control-label" id="post_to_sis_label">
  52. {{#t}}Sync to {{postToSISName}}:{{/t}}
  53. </label>
  54. </td>
  55. <td>
  56. <label>
  57. {{checkbox "postToSIS"
  58. id="assignment_post_to_sis"
  59. name="assignment[post_to_sis]"
  60. aria-labelledby="post_to_sis_label"
  61. class="post_to_sis_checkbox"
  62. }}
  63. </label>
  64. </td>
  65. </tr>
  66. {{/if}}
  67. <tr class="context_select">
  68. <td>{{#t}}Publish:{{/t}}</td>
  69. <td>
  70. <!-- start super toggle -->
  71. <label class="ic-Super-toggle--on-off" for="assignment_published">
  72. <div class="screenreader-only">{{#t}}Publish{{/t}}</div>
  73. <input type="checkbox" id="assignment_published" name="assignment[published]" class="ic-Super-toggle__input">
  74. <div class="ic-Super-toggle__container" aria-hidden="true" data-checked="{{#t}}Yes{{/t}}" data-unchecked="{{#t}}No{{/t}}">
  75. <div class="ic-Super-toggle__switch">
  76. <div class="ic-Super-toggle__option--LEFT">
  77. <svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="548.9" height="548.9" viewBox="0 0 548.9 548.9" xml:space="preserve"><polygon points="449.3 48 195.5 301.8 99.5 205.9 0 305.4 95.9 401.4 195.5 500.9 295 401.4 548.9 147.5 "/></svg>
  78. </div>
  79. <div class="ic-Super-toggle__option--RIGHT">
  80. <svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" viewBox="0 0 28 28" xml:space="preserve"><polygon points="28 22.4 19.6 14 28 5.6 22.4 0 14 8.4 5.6 0 0 5.6 8.4 14 0 22.4 5.6 28 14 19.6 22.4 28" /></svg>
  81. </div>
  82. </div>
  83. </div>
  84. </label>
  85. <!-- end super toggle -->
  86. </td>
  87. </tr>
  88. </table>
  89. </div>
  90. <div class="popover-links-holder event-details-footer pull-right">
  91. <a href="#" class="event_button btn btn-secondary more_options_link">{{#t "links.more_options"}}More Options{{/t}}</a>
  92. <button type="submit" class="event_button btn btn-primary save_assignment">{{#t "#buttons.submit"}}Submit{{/t}}</button>
  93. </div>
  94. </div>