1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Adds link to docs on container groups add/edit forms to match instance groups. Updates instance groups link.

This commit is contained in:
mabashian 2019-11-21 11:05:06 -05:00
parent 804a3c17bf
commit 8ff413efc0
6 changed files with 21 additions and 6 deletions

View File

@ -7,8 +7,8 @@ function AddController ($state, models, strings) {
vm.panelTitle = strings.get('state.ADD_BREADCRUMB_LABEL');
vm.docs = {
url: 'https://docs.ansible.com/ansible-tower/latest/html/administration/clustering.html',
help_text: vm.strings.get('tooltips.DOCS_HELP_TEXT')
url: 'https://docs.ansible.com/ansible-tower/latest/html/userguide/instance_groups.html',
help_text: vm.strings.get('tooltips.IG_DOCS_HELP_TEXT')
};
vm.tab = {

View File

@ -17,8 +17,8 @@ function EditController ($rootScope, $state, models, strings) {
vm.panelTitle = instanceGroup.get('name');
vm.docs = {
url: 'https://docs.ansible.com/ansible-tower/latest/html/administration/clustering.html',
help_text: vm.strings.get('tooltips.DOCS_HELP_TEXT')
url: 'https://docs.ansible.com/ansible-tower/latest/html/userguide/instance_groups.html',
help_text: vm.strings.get('tooltips.IG_DOCS_HELP_TEXT')
};
vm.tab = {

View File

@ -10,6 +10,11 @@ function AddContainerGroupController(ToJSON, $scope, $state, models, strings, i1
vm.panelTitle = strings.get('state.ADD_CONTAINER_GROUP_BREADCRUMB_LABEL');
vm.lookUpTitle = strings.get('container.LOOK_UP_TITLE');
vm.docs = {
url: 'https://docs.ansible.com/ansible-tower/latest/html/administration/external_execution_envs.html#ag-container-groups',
help_text: vm.strings.get('tooltips.CG_DOCS_HELP_TEXT')
};
vm.form = instanceGroup.createFormSchema('post');
vm.form.name.required = true;
delete vm.form.name.help_text;

View File

@ -6,7 +6,11 @@
</div>
</a>
<at-panel>
<at-panel-heading title="{{:: vm.panelTitle }}"></at-panel-heading>
<at-panel-heading title="{{:: vm.panelTitle }}">
<a class="Panel-docsLink" ng-href="{{ vm.docs.url }}" target="_blank" aw-tool-tip="{{:: vm.docs.help_text }}">
<i class="fa fa-book"></i>
</a>
</at-panel-heading>
<at-tab-group>
<at-tab state="vm.tab.details">{{:: vm.strings.get('tab.DETAILS') }}</at-tab>
<at-tab state="vm.tab.jobs">{{:: vm.strings.get('tab.JOBS') }}</at-tab>

View File

@ -23,6 +23,11 @@ function EditContainerGroupController($rootScope, $scope, $state, models, string
vm.panelTitle = EditContainerGroupDataset.data.name;
vm.lookUpTitle = strings.get('container.LOOK_UP_TITLE');
vm.docs = {
url: 'https://docs.ansible.com/ansible-tower/latest/html/administration/external_execution_envs.html#ag-container-groups',
help_text: vm.strings.get('tooltips.CG_DOCS_HELP_TEXT')
};
vm.form = instanceGroup.createFormSchema('post');
vm.switchDisabled = false;
vm.form.disabled = !instanceGroup.has('options', 'actions.PUT');

View File

@ -32,7 +32,8 @@ function InstanceGroupsStrings(BaseString) {
ns.tooltips = {
ADD_INSTANCE_GROUP: t.s('Create a new Instance Group'),
ASSOCIATE_INSTANCES: t.s('Associate an existing Instance'),
DOCS_HELP_TEXT: t.s('Instance Groups Help')
IG_DOCS_HELP_TEXT: t.s('Instance Groups Help'),
CG_DOCS_HELP_TEXT: t.s('Container Groups Help')
};
ns.instance = {