mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
Add organization, host, and credential type detail view help text.
This commit is contained in:
@@ -76,6 +76,7 @@ function CredentialTypeDetails({ credentialType }) {
|
|||||||
rows={6}
|
rows={6}
|
||||||
name="input"
|
name="input"
|
||||||
dataCy="credential-type-detail-input"
|
dataCy="credential-type-detail-input"
|
||||||
|
helpText={t`Input schema which defines a set of ordered fields for that type.`}
|
||||||
/>
|
/>
|
||||||
<VariablesDetail
|
<VariablesDetail
|
||||||
label={t`Injector configuration`}
|
label={t`Injector configuration`}
|
||||||
@@ -83,6 +84,7 @@ function CredentialTypeDetails({ credentialType }) {
|
|||||||
rows={6}
|
rows={6}
|
||||||
name="injector"
|
name="injector"
|
||||||
dataCy="credential-type-detail-injector"
|
dataCy="credential-type-detail-injector"
|
||||||
|
helpText={t`Environment variables or extra variables that specify the values a credential type can inject.`}
|
||||||
/>
|
/>
|
||||||
<UserDateDetail
|
<UserDateDetail
|
||||||
label={t`Created`}
|
label={t`Created`}
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ function HostDetail({ host }) {
|
|||||||
<Detail
|
<Detail
|
||||||
label={t`Inventory`}
|
label={t`Inventory`}
|
||||||
dataCy="host-inventory"
|
dataCy="host-inventory"
|
||||||
|
helpText={t`The inventory that this host belongs to.`}
|
||||||
value={
|
value={
|
||||||
<Link to={`/inventories/inventory/${inventory.id}/details`}>
|
<Link to={`/inventories/inventory/${inventory.id}/details`}>
|
||||||
{inventory.name}
|
{inventory.name}
|
||||||
|
|||||||
@@ -94,12 +94,22 @@ function OrganizationDetail({ organization }) {
|
|||||||
/>
|
/>
|
||||||
<Detail label={t`Description`} value={description} />
|
<Detail label={t`Description`} value={description} />
|
||||||
{license_info?.license_type !== 'open' && (
|
{license_info?.license_type !== 'open' && (
|
||||||
<Detail label={t`Max Hosts`} value={`${max_hosts}`} />
|
<Detail
|
||||||
|
label={t`Max Hosts`}
|
||||||
|
value={`${max_hosts}`}
|
||||||
|
helpText={t`The maximum number of hosts allowed to be managed by
|
||||||
|
this organization. Value defaults to 0 which means no limit.
|
||||||
|
Refer to the Ansible documentation for more details.`}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
<ExecutionEnvironmentDetail
|
<ExecutionEnvironmentDetail
|
||||||
virtualEnvironment={custom_virtualenv}
|
virtualEnvironment={custom_virtualenv}
|
||||||
executionEnvironment={summary_fields?.default_environment}
|
executionEnvironment={summary_fields?.default_environment}
|
||||||
isDefaultEnvironment
|
isDefaultEnvironment
|
||||||
|
helpText={t`The execution environment that will be used for jobs
|
||||||
|
inside of this organization. This will be used a fallback when
|
||||||
|
an execution environment has not been explicitly assigned at the
|
||||||
|
project, job template or workflow level.`}
|
||||||
/>
|
/>
|
||||||
<UserDateDetail
|
<UserDateDetail
|
||||||
label={t`Created`}
|
label={t`Created`}
|
||||||
@@ -115,6 +125,7 @@ function OrganizationDetail({ organization }) {
|
|||||||
<Detail
|
<Detail
|
||||||
fullWidth
|
fullWidth
|
||||||
label={t`Instance Groups`}
|
label={t`Instance Groups`}
|
||||||
|
helpText={t`The Instance Groups for this Organization to run on.`}
|
||||||
value={
|
value={
|
||||||
<ChipGroup
|
<ChipGroup
|
||||||
numChips={5}
|
numChips={5}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { useHistory, useParams } from 'react-router-dom';
|
|||||||
import { CardBody } from 'components/Card';
|
import { CardBody } from 'components/Card';
|
||||||
import { TokensAPI, UsersAPI } from 'api';
|
import { TokensAPI, UsersAPI } from 'api';
|
||||||
import useRequest from 'hooks/useRequest';
|
import useRequest from 'hooks/useRequest';
|
||||||
import UserTokenFrom from '../shared/UserTokenForm';
|
import UserTokenForm from '../shared/UserTokenForm';
|
||||||
|
|
||||||
function UserTokenAdd({ onSuccessfulAdd }) {
|
function UserTokenAdd({ onSuccessfulAdd }) {
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
@@ -36,7 +36,7 @@ function UserTokenAdd({ onSuccessfulAdd }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<UserTokenFrom
|
<UserTokenForm
|
||||||
handleCancel={handleCancel}
|
handleCancel={handleCancel}
|
||||||
handleSubmit={handleSubmit}
|
handleSubmit={handleSubmit}
|
||||||
submitError={submitError}
|
submitError={submitError}
|
||||||
|
|||||||
Reference in New Issue
Block a user