diff --git a/lms/templates/help_modal.html b/lms/templates/help_modal.html
index 3d7bdfd02c..deb2db3610 100644
--- a/lms/templates/help_modal.html
+++ b/lms/templates/help_modal.html
@@ -117,21 +117,41 @@ discussion_link = get_discussion_link(course) if course else None
$("#feedback_success_wrapper").css("display", "none");
$("#help_wrapper").css("display", "block");
});
- showFeedback = function(e, issue_type, title) {
+ showFeedback = function(event, issue_type, title, subject_label, details_label) {
$("#help_wrapper").css("display", "none");
$("#feedback_form input[name='issue_type']").val(issue_type);
$("#feedback_form_wrapper").css("display", "block");
$("#feedback_form_wrapper header").html("
" + title + "
");
- e.preventDefault();
+ $("#feedback_form_wrapper label[data-field='subject']").html(subject_label);
+ $("#feedback_form_wrapper label[data-field='details']").html(details_label);
+ event.preventDefault();
};
- $("#feedback_link_problem").click(function(e) {
- showFeedback(e, "problem", "Report a Problem");
+ $("#feedback_link_problem").click(function(event) {
+ showFeedback(
+ event,
+ "problem",
+ "Report a Problem",
+ "Brief description of the problem*",
+ "Details of the problem you are encountering* Include error messages, steps which lead to the issue, etc."
+ );
});
- $("#feedback_link_suggestion").click(function(e) {
- showFeedback(e, "suggestion", "Make a Suggestion");
+ $("#feedback_link_suggestion").click(function(event) {
+ showFeedback(
+ event,
+ "suggestion",
+ "Make a Suggestion",
+ "Brief description of your suggestion*",
+ "Details*"
+ );
});
- $("#feedback_link_question").click(function(e) {
- showFeedback(e, "question", "Ask a Question");
+ $("#feedback_link_question").click(function(event) {
+ showFeedback(
+ event,
+ "question",
+ "Ask a Question",
+ "Brief summary of your question*",
+ "Details*"
+ );
});
$("#feedback_form").submit(function() {
$("input[type='submit']", this).attr("disabled", "disabled");