add tooltips for fields prompted on launch

This commit is contained in:
Keith Grant 2019-03-07 16:27:01 -05:00
parent a9226fc25f
commit 09f9204917
2 changed files with 20 additions and 0 deletions

View File

@ -45,12 +45,17 @@ function TemplatesStrings (BaseString) {
VAULT_PASSWORD: t.s('Vault Password')
},
SHOW_CHANGES: t.s('Show Changes'),
SHOW_CHANGES_HELP: t.s('If enabled, show the changes made by Ansible tasks, where supported. This is equivalent to Ansible&#x2019s --diff mode.'),
SKIP_TAGS: t.s('Skip Tags'),
SKIP_TAGS_HELP: t.s('Skip tags are useful when you have a large playbook, and you want to skip specific parts of a play or task. Use commas to separate multiple tags. Refer to Ansible Tower documentation for details on the usage of tags.'),
JOB_TAGS: t.s('Job Tags'),
JOB_TAGS_HELP: t.s('Tags are useful when you have a large playbook, and you want to run a specific part of a play or task. Use commas to separate multiple tags. Refer to Ansible Tower documentation for details on the usage of tags.'),
LIMIT: t.s('Limit'),
LIMIT_HELP: t.s('Provide a host pattern to further constrain the list of hosts that will be managed or affected by the playbook. Multiple patterns are allowed. Refer to Ansible documentation for more information and examples on patterns.'),
JOB_TYPE: t.s('Job Type'),
JOB_TYPE_HELP: t.s('For job templates, select run to execute the playbook. Select check to only check playbook syntax, test environment setup, and report problems without executing the playbook.'),
VERBOSITY: t.s('Verbosity'),
VERBOSITY_HELP: t.s('Control the level of output ansible will produce as the playbook executes.'),
CHOOSE_JOB_TYPE: t.s('Choose a job type'),
CHOOSE_VERBOSITY: t.s('Choose a verbosity'),
EXTRA_VARIABLES: t.s('Extra Variables'),

View File

@ -3,6 +3,9 @@
<label for="job_type" class="Form-inputLabelContainer">
<span class="Form-requiredAsterisk">*</span>
<span class="Form-inputLabel" translate>{{:: vm.strings.get('prompt.JOB_TYPE') }}</span>
<a id="awp-limit" href="" aw-pop-over="{{:: vm.strings.get('prompt.JOB_TYPE_HELP') }}" data-placement="right" data-container="body" over-title="{{:: vm.strings.get('prompt.JOB_TYPE') }}" class="help-link" data-original-title="" title="" tabindex="-1">
<i class="fa fa-question-circle"></i>
</a>
</label>
<div>
<select
@ -39,6 +42,9 @@
<label for="verbosity" class="Form-inputLabelContainer">
<span class="Form-requiredAsterisk">*</span>
<span class="Form-inputLabel">{{:: vm.strings.get('prompt.VERBOSITY') }}</span>
<a id="awp-limit" href="" aw-pop-over="{{:: vm.strings.get('prompt.VERBOSITY_HELP') }}" data-placement="right" data-container="body" over-title="{{:: vm.strings.get('prompt.VERBOSITY') }}" class="help-link" data-original-title="" title="" tabindex="-1">
<i class="fa fa-question-circle"></i>
</a>
</label>
<div>
<select
@ -58,6 +64,9 @@
<div class="form-group Form-formGroup Form-formGroup--singleColumn" ng-if="promptData.launchConf.ask_tags_on_launch">
<label for="tags">
<span class="Form-inputLabel">{{:: vm.strings.get('prompt.JOB_TAGS') }}</span>
<a id="awp-limit" href="" aw-pop-over="{{:: vm.strings.get('prompt.JOB_TAGS_HELP') }}" data-placement="right" data-container="body" over-title="{{:: vm.strings.get('prompt.JOB_TAGS') }}" class="help-link" data-original-title="" title="" tabindex="-1">
<i class="fa fa-question-circle"></i>
</a>
</label>
<div>
<select
@ -76,6 +85,9 @@
<div class="form-group Form-formGroup Form-formGroup--singleColumn" ng-if="promptData.launchConf.ask_skip_tags_on_launch">
<label for="skip_tags">
<span class="Form-inputLabel">{{:: vm.strings.get('prompt.SKIP_TAGS') }}</span>
<a id="awp-limit" href="" aw-pop-over="{{:: vm.strings.get('prompt.SKIP_TAGS_HELP') }}" data-placement="right" data-container="body" over-title="{{:: vm.strings.get('prompt.SKIP_TAGS') }}" class="help-link" data-original-title="" title="" tabindex="-1">
<i class="fa fa-question-circle"></i>
</a>
</label>
<div>
<select
@ -94,6 +106,9 @@
<div class="form-group Form-formGroup Form-formGroup--singleColumn" ng-if="promptData.launchConf.ask_diff_mode_on_launch">
<label for="diff_mode">
<span class="Form-inputLabel">{{:: vm.strings.get('prompt.SHOW_CHANGES') }}</span>
<a id="awp-limit" href="" aw-pop-over="{{:: vm.strings.get('prompt.SHOW_CHANGES_HELP') }}" data-placement="right" data-container="body" over-title="{{:: vm.strings.get('prompt.SHOW_CHANGES') }}" class="help-link" data-original-title="" title="" tabindex="-1">
<i class="fa fa-question-circle"></i>
</a>
</label>
<div>
<div class="ScheduleToggle" ng-class="{'is-on': promptData.prompts.diffMode.value}" aw-tool-tip="" data-placement="top" data-original-title="" title="" ng-click="vm.toggleDiff()">