mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
add tooltips to add organization form
This commit is contained in:
parent
ecb7306c46
commit
5b3f5206c4
@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { withRouter } from 'react-router-dom';
|
import { withRouter } from 'react-router-dom';
|
||||||
import { I18n, i18nMark } from '@lingui/react';
|
import { I18n, i18nMark } from '@lingui/react';
|
||||||
@ -11,7 +11,9 @@ import {
|
|||||||
Gallery,
|
Gallery,
|
||||||
Card,
|
Card,
|
||||||
CardBody,
|
CardBody,
|
||||||
|
Tooltip,
|
||||||
} from '@patternfly/react-core';
|
} from '@patternfly/react-core';
|
||||||
|
import { QuestionCircleIcon } from '@patternfly/react-icons';
|
||||||
|
|
||||||
import { ConfigContext } from '../../../context';
|
import { ConfigContext } from '../../../context';
|
||||||
import Lookup from '../../../components/Lookup';
|
import Lookup from '../../../components/Lookup';
|
||||||
@ -135,7 +137,21 @@ class OrganizationAdd extends React.Component {
|
|||||||
onChange={this.onFieldChange}
|
onChange={this.onFieldChange}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup label={i18n._(t`Instance Groups`)} helperText={i18n._(t`Select the Instance Groups for this Organization to run on.`)} fieldId="add-org-form-instance-groups">
|
<FormGroup
|
||||||
|
label={(
|
||||||
|
<Fragment>
|
||||||
|
{i18n._(t`Instance Groups`)}
|
||||||
|
{' '}
|
||||||
|
<Tooltip
|
||||||
|
position="right"
|
||||||
|
content={i18n._(t`Select the Instance Groups for this Organization to run on.`)}
|
||||||
|
>
|
||||||
|
<QuestionCircleIcon />
|
||||||
|
</Tooltip>
|
||||||
|
</Fragment>
|
||||||
|
)}
|
||||||
|
fieldId="add-org-form-instance-groups"
|
||||||
|
>
|
||||||
<Lookup
|
<Lookup
|
||||||
lookupHeader={i18n._(t`Instance Groups`)}
|
lookupHeader={i18n._(t`Instance Groups`)}
|
||||||
name="instanceGroups"
|
name="instanceGroups"
|
||||||
@ -149,7 +165,21 @@ class OrganizationAdd extends React.Component {
|
|||||||
<ConfigContext.Consumer>
|
<ConfigContext.Consumer>
|
||||||
{({ custom_virtualenvs }) => (
|
{({ custom_virtualenvs }) => (
|
||||||
custom_virtualenvs && custom_virtualenvs.length > 1 && (
|
custom_virtualenvs && custom_virtualenvs.length > 1 && (
|
||||||
<FormGroup label={i18n._(t`Ansible Environment`)} helperText={i18n._(t`Select the custom Python virtual environment for this organization to run on.`)} fieldId="add-org-custom-virtualenv">
|
<FormGroup
|
||||||
|
label={(
|
||||||
|
<Fragment>
|
||||||
|
{i18n._(t`Ansible Environment`)}
|
||||||
|
{' '}
|
||||||
|
<Tooltip
|
||||||
|
position="right"
|
||||||
|
content={i18n._(t`Select the custom Python virtual environment for this organization to run on.`)}
|
||||||
|
>
|
||||||
|
<QuestionCircleIcon />
|
||||||
|
</Tooltip>
|
||||||
|
</Fragment>
|
||||||
|
)}
|
||||||
|
fieldId="add-org-custom-virtualenv"
|
||||||
|
>
|
||||||
<AnsibleSelect
|
<AnsibleSelect
|
||||||
label={i18n._(t`Ansible Environment`)}
|
label={i18n._(t`Ansible Environment`)}
|
||||||
name="custom_virtualenv"
|
name="custom_virtualenv"
|
||||||
|
Loading…
Reference in New Issue
Block a user