appointmentGroupList.handlebars 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {{#if appointment_groups}}
  2. <ul class="scheduler-content" id="appointment-group-list">
  3. {{#each appointment_groups}}
  4. <li class='appointment-group-item admin-link-hover-area {{#if requiring_action}}requiring-action{{/if}} {{#unless published}}unpublished-ag{{/unless}}' data-appointment-group-id='{{id}}'>
  5. <div>
  6. <h3><a class="view_calendar_link" href="#">{{title}}</a></h3>
  7. <div class='ag-context'>
  8. {{#toSentence contexts}}<a href="{{url}}">{{name}}</a>{{/toSentence}}
  9. </div>
  10. {{#if location_name}}
  11. <div class="ag-location">
  12. <strong>{{#t "location"}}Location:{{/t}}</strong>
  13. <span>{{location_name}}</span>
  14. </div>
  15. {{/if}}
  16. {{#if description}}
  17. <p class="ag-description">{{newlinesToBreak description}}</p>
  18. {{/if}}
  19. {{#if is_manageable}}
  20. <div class="ag-x-of-x-signed-up">
  21. {{#ifEqual participant_type "Group"}}
  22. {{#t "x_groups_have_signed_up"}}
  23. {{n participant_count}} groups have signed up
  24. {{/t}}
  25. {{else}}
  26. {{#t "x_people_have_signed_up"}}
  27. {{n participant_count}} people have signed up
  28. {{/t}}
  29. {{/ifEqual}}
  30. {{#unless published}}(unpublished){{/unless}}
  31. </div>
  32. {{/if}}
  33. </div>
  34. {{#if is_manageable}}
  35. <div class="admin-links">
  36. <button class="al-trigger btn btn-mini">
  37. <i class="icon-settings"></i><i class="icon-mini-arrow-down"></i>
  38. </button>
  39. <ul class="al-options">
  40. <li><a class="edit_link" href="#"><i class="icon-edit"></i> {{#t "edit"}}Edit{{/t}}</a></li>
  41. <li><a class="message_link" href="#"><i class="icon-message"></i>&nbsp; {{#ifEqual participant_type "Group"}}{{#t "message_groups"}}Message Groups Who...{{/t}}{{else}}{{#t "message_students"}}Message Students Who...{{/t}}{{/ifEqual}}</a></li>
  42. <li><a class="delete_link" href="#"><i class="icon-trash"></i> {{#t "delete" }}Delete{{/t}}</a></li>
  43. </ul>
  44. </div>
  45. {{/if}}
  46. {{#if requiring_action}}
  47. <div class="alert alert-warning">
  48. <div>
  49. {{#t}} You can <a class="view_calendar_link" href="#">sign up</a> for this.{{/t}}
  50. </div>
  51. </div>
  52. {{else}}
  53. {{#if reserved_times}}
  54. <div class="alert alert-success">
  55. <div>{{#t "signed_up_for" }} You're signed up for{{/t}}</div>
  56. {{#each reserved_times}}
  57. <div><strong><a href="#" class="show_event_link" data-event-id="{{id}}">{{{formatted_time}}}</a></strong></div>
  58. {{/each}}
  59. </div>
  60. {{/if}}
  61. {{/if}}
  62. </li>
  63. {{/each}}
  64. </ul>
  65. {{else}}
  66. <div class="scheduler-header"></div>
  67. <div class="scheduler-content">
  68. {{#if canManageAGroup}}
  69. <h2>
  70. {{#t "scheduler_explanation_teacher_header"}}
  71. You have not created any appointment groups, and there are none you can sign up for
  72. {{/t}}
  73. </h2>
  74. <p>
  75. {{#t "scheduler_explanation_teacher_paragraph_1"}}
  76. This is the Scheduler Tool. You can use it to create appointment groups for your students to sign up for.
  77. {{/t}}
  78. </p>
  79. <p>
  80. {{#t "scheduler_explanation_teacher_paragraph_2"}}
  81. For example, lets say you want to go over the midterm paper assignment with each of the students in your course.
  82. You would create a new appointment group, specify the dates and times that you're available,
  83. tell it to split that time into 15 minute blocks and only allow one student per time-block.
  84. {{/t}}
  85. </p>
  86. <p>
  87. {{#t "scheduler_explanation_teacher_paragraph_3"}}
  88. Then students would get notified and see that they need to sign up for one of the specified
  89. time blocks. They will be shown a calendar with the available time blocks overlaid on top of
  90. everything on their other calendars so they can pick a time that works for them.
  91. {{/t}}
  92. </p>
  93. <p>
  94. {{#t "scheduler_explanation_teacher_paragraph_4"}}
  95. <strong>
  96. Get started now by clicking the "Create an appointment group" button to the right.
  97. </strong>
  98. {{/t}}
  99. </p>
  100. {{else}}
  101. <h2>
  102. {{#t "scheduler_explanation_student_header"}}
  103. You do not have any appointment groups to sign up for
  104. {{/t}}
  105. </h2>
  106. <p>
  107. {{#t "scheduler_explanation_student_paragraph_1"}}
  108. Teachers can use this tool to schedule things for their students to sign up for, e.g. office hours, group presentation time slots, etc.
  109. {{/t}}
  110. </p>
  111. <p>
  112. {{#t "scheduler_explanation_student_paragraph_2"}}
  113. Currently, none of your teachers have made any appointments available. You will be notified if appointment slots become available.
  114. {{/t}}
  115. </p>
  116. {{/if}}
  117. </div>
  118. {{/if}}