helpDialog.handlebars 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <div id="help-dialog">
  2. <ul id="help-dialog-options" class="help-dialog-pane">
  3. {{#each helpLinks}}
  4. <li>
  5. <a href="{{#if url}}{{url}}{{else}}#{{/if}}" target="_blank">
  6. <span class="text">{{text}}</span>
  7. <span class="subtext">{{subtext}}</span>
  8. </a>
  9. </li>
  10. {{/each}}
  11. </ul>
  12. <form class="help-dialog-pane" id="teacher_feedback" style="display:none" action="/api/v1/conversations" method="POST">
  13. <label for="teacher-feedback-recipients">
  14. {{#t "which_course_is_this_question_about"}}Which course is this question about?{{/t}}
  15. <small>{{#t "message_will_be_sent_to_all_the_teachers_tas_in_the_course"}}Message will be sent to all the Teachers / TA's in the course.{{/t}}</small>
  16. </label>
  17. <select class="input-block-level" name="recipients[]" id="teacher-feedback-recipients"></select>
  18. <label for="teacher-feedback-body">{{#t "message"}}Message{{/t}}</label>
  19. <textarea id="teacher-feedback-body" name="body"></textarea>
  20. <div class="button-container">
  21. <button type="submit" class="btn" data-text-while-loading="{{#t "sending"}}Sending...{{/t}}">{{#t "send_message"}}Send Message{{/t}}</button>
  22. </div>
  23. <input class="input-block-level" type="hidden" name="group_conversation" value="true">
  24. </form>
  25. <form class="help-dialog-pane bootstrap-form" id="create_ticket" style="display:none" action="/error_reports" method="POST">
  26. <h4>{{#t "file_a_ticket_for_a_personal_response_from_our_support_team"}}File a ticket for a personal response from our support team{{/t}}</h4>
  27. <div role="alert" class="alert">
  28. <strong>{{#t "for_an_instant_answer"}}For an instant answer:{{/t}}</strong>
  29. <div>{{#t "see_if_your_issue_is_addressed_in_the_canvas_guides"}}See if your issue is addressed in the <a target="_blank" href="http://guides.canvaslms.com/">Canvas Guides</a>.{{/t}}</div>
  30. </div>
  31. <div>
  32. <label for="error_subject">{{#t "subject"}}Subject{{/t}}</label>
  33. <input type="text" class="input-block-level" id="error_subject" name="error[subject]" />
  34. </div>
  35. <div>
  36. <label for="error-comments">
  37. {{#t "description"}}Description{{/t}}
  38. <small>{{#t "include_a_link_to_a_screencast_or_screenshot_using_something_like_jing"}}Include a link to a screencast/screenshot using something like <a target="_blank" href="http://www.techsmith.com/download/jing">Jing</a>.{{/t}}</small>
  39. </label>
  40. <textarea class="input-block-level" id="error-comments" name="error[comments]"></textarea>
  41. </div>
  42. <label for="severity">{{#t "how_is_this_affecting_you"}}How is this affecting you?{{/t}}</label>
  43. <select class="input-block-level" name="error[user_perceived_severity]" id="severity">
  44. <option value="">{{#t "please_select_one"}}Please select one...{{/t}}</option>
  45. <option value="just_a_comment">{{#t "just_a_casual_question_comment_idea_suggestion"}}Just a casual question, comment, idea, suggestion{{/t}}</option>
  46. <option value="not_urgent">{{#t "i_need_some_help_but_its_not_urgent"}}I need some help but it's not urgent{{/t}}</option>
  47. <option value="workaround_possible">{{#t "somethings_broken_but_i_can_work_around_it_for_now"}}Something's broken but I can work around it for now{{/t}}</option>
  48. <option value="blocks_what_i_need_to_do">{{#t "i_cant_get_things_done_until_i_hear_back_from_you"}}I can't get things done until I hear back from you{{/t}}</option>
  49. <option value="extreme_critical_emergency">{{#t "extreme_critical_emergency"}}EXTREME CRITICAL EMERGENCY!!{{/t}}</option>
  50. </select>
  51. <div style="{{hiddenUnless showEmail}}">
  52. <label for="error-email">{{#t "your_email_address"}}Your email address{{/t}}</label>
  53. <input class="input-block-level" type="email" name="error[email]" id="error-email">
  54. </div>
  55. <input class="input-block-level" type="hidden" name="error[url]" value="{{url}}">
  56. <input class="input-block-level" type="hidden" name="error[context_asset_string]" value="{{contextAssetString}}">
  57. <input class="input-block-level" type="hidden" name="error[user_roles]" value="{{userRoles}}">
  58. <div class="button-container">
  59. <button type="submit" data-text-while-loading="{{#t "Submitting_Ticket"}}Submitting Ticket...{{/t}}" class="btn submit_button"><img src="/images/email.png" alt=""/>{{#t "submit_this_support_request"}}Submit Ticket{{/t}}</button>
  60. </div>
  61. </form>
  62. </div>