mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 03:17:39 -02:30
Merge pull request #2206 from mabashian/survey-button-tooltip
Added the ability to set tooltips on form generator buttons. Added t…
This commit is contained in:
@@ -317,7 +317,9 @@ export default
|
|||||||
add_survey: {
|
add_survey: {
|
||||||
ngClick: 'addSurvey()',
|
ngClick: 'addSurvey()',
|
||||||
ngShow: 'job_type.value !== "scan" && !survey_exists',
|
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: {
|
edit_survey: {
|
||||||
ngClick: 'editSurvey()',
|
ngClick: 'editSurvey()',
|
||||||
|
|||||||
@@ -1718,6 +1718,9 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
//html += "\" ";
|
//html += "\" ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(button.awToolTip) {
|
||||||
|
html += " aw-tool-tip='" + button.awToolTip + "' data-placement='" + button.dataPlacement + "' data-tip-watch='" + button.dataTipWatch + "'";
|
||||||
|
}
|
||||||
html += ">";
|
html += ">";
|
||||||
html += " " + button.label + "</button>\n";
|
html += " " + button.label + "</button>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user