From d8fe8cc7fff04900bcbb38e3b6b30dd0cbac279d Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 26 Sep 2014 14:40:21 -0400 Subject: [PATCH] added required asterick for required questions --- awx/ui/static/js/helpers/Survey.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/awx/ui/static/js/helpers/Survey.js b/awx/ui/static/js/helpers/Survey.js index 566c2f7f50..bb5f428cd5 100644 --- a/awx/ui/static/js/helpers/Survey.js +++ b/awx/ui/static/js/helpers/Survey.js @@ -265,8 +265,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', // id = params.id, question = params.question, index = params.index, - // url, - // key, + required, element, choices, i, checked, max, min, defaultValue, @@ -280,8 +279,8 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', } - - html = '
'+question.question_name+'
\n'; + required = (question.required) ? "prepend-asterisk" : ""; + html = '
'+question.question_name+'
\n'; if(!Empty(question.question_description)){ html += '
'+question.question_description+'
\n'; }