mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
Added the ability to set tooltips on form generator buttons. Added tooltip to the ADD SURVEY button on the job templates form.
This commit is contained in:
parent
1870ce345c
commit
03dd11d292
@ -317,7 +317,9 @@ export default
|
||||
add_survey: {
|
||||
ngClick: 'addSurvey()',
|
||||
ngShow: 'job_type.value !== "scan" && !survey_exists',
|
||||
awFeature: 'surveys'
|
||||
awFeature: 'surveys',
|
||||
awToolTip: 'Surveys allow users to be prompted at job launch with a series of questions related to the job',
|
||||
dataPlacement: 'top'
|
||||
},
|
||||
edit_survey: {
|
||||
ngClick: 'editSurvey()',
|
||||
|
||||
@ -1718,6 +1718,9 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
//html += "\" ";
|
||||
}
|
||||
}
|
||||
if(button.awToolTip) {
|
||||
html += " aw-tool-tip='" + button.awToolTip + "' data-placement='" + button.dataPlacement + "' data-tip-watch='" + button.dataTipWatch + "'";
|
||||
}
|
||||
html += ">";
|
||||
html += " " + button.label + "</button>\n";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user