mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 05:59:28 -02:30
added required asterick for required questions
This commit is contained in:
@@ -265,8 +265,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
// id = params.id,
|
// id = params.id,
|
||||||
question = params.question,
|
question = params.question,
|
||||||
index = params.index,
|
index = params.index,
|
||||||
// url,
|
required,
|
||||||
// key,
|
|
||||||
element, choices, i, checked,
|
element, choices, i, checked,
|
||||||
max, min, defaultValue,
|
max, min, defaultValue,
|
||||||
|
|
||||||
@@ -280,8 +279,8 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
required = (question.required) ? "prepend-asterisk" : "";
|
||||||
html = '<div class="col-xs-12"><b>'+question.question_name+'</b></div>\n';
|
html = '<div class="col-xs-12 '+required+'"><b>'+question.question_name+'</b></div>\n';
|
||||||
if(!Empty(question.question_description)){
|
if(!Empty(question.question_description)){
|
||||||
html += '<div class="col-xs-12"><i>'+question.question_description+'</i></div>\n';
|
html += '<div class="col-xs-12"><i>'+question.question_description+'</i></div>\n';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user