messageStudentsDialog.handlebars 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <div class="message-students-dialog form-dialog-content">
  2. <div class="message-recipients-group-container">
  3. <label for="message-recipients-group">
  4. {{#t "recipients"}}Recipients:{{/t}}
  5. </label>
  6. {{#ifEqual recipientGroups.length 1}}
  7. {{recipientGroups.0.name}}
  8. <input type="hidden" name="recipientGroupName" value="{{recipientGroups.0.name}}" />
  9. {{else}}
  10. <select name="recipientGroupName" id="message-recipients-group">
  11. {{#each recipientGroups}}
  12. <option value="{{name}}">{{name}}</option>
  13. {{/each}}
  14. </select>
  15. {{/ifEqual}}
  16. </div>
  17. <div id="message-recipients">
  18. {{> messageStudentsWhoRecipientList this}}
  19. </div>
  20. <textarea name=body></textarea>
  21. </div>
  22. <div class="form-controls">
  23. <button class="btn dialog_closer btn-secondary" type="button"
  24. data-text-while-loading='{{#t "#buttons.sending"}}Sending...{{/t}}'>
  25. {{#t "#buttons.cancel"}}Cancel{{/t}}
  26. </button>
  27. <button class="btn btn-primary"
  28. data-text-while-loading='{{#t "#buttons.sending"}}Sending...{{/t}}'
  29. data-text-when-loaded='{{#t "#buttons.sent"}}Sent!{{/t}}'>
  30. {{#t "#buttons.send_message"}}Send Message{{/t}}
  31. </button>
  32. </div>