mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Add organization, host, and credential type detail view help text.
This commit is contained in:
parent
677187a43e
commit
c84fac65e0
@ -76,6 +76,7 @@ function CredentialTypeDetails({ credentialType }) {
|
||||
rows={6}
|
||||
name="input"
|
||||
dataCy="credential-type-detail-input"
|
||||
helpText={t`Input schema which defines a set of ordered fields for that type.`}
|
||||
/>
|
||||
<VariablesDetail
|
||||
label={t`Injector configuration`}
|
||||
@ -83,6 +84,7 @@ function CredentialTypeDetails({ credentialType }) {
|
||||
rows={6}
|
||||
name="injector"
|
||||
dataCy="credential-type-detail-injector"
|
||||
helpText={t`Environment variables or extra variables that specify the values a credential type can inject.`}
|
||||
/>
|
||||
<UserDateDetail
|
||||
label={t`Created`}
|
||||
|
||||
@ -74,6 +74,7 @@ function HostDetail({ host }) {
|
||||
<Detail
|
||||
label={t`Inventory`}
|
||||
dataCy="host-inventory"
|
||||
helpText={t`The inventory that this host belongs to.`}
|
||||
value={
|
||||
<Link to={`/inventories/inventory/${inventory.id}/details`}>
|
||||
{inventory.name}
|
||||
|
||||
@ -94,12 +94,22 @@ function OrganizationDetail({ organization }) {
|
||||
/>
|
||||
<Detail label={t`Description`} value={description} />
|
||||
{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
|
||||
virtualEnvironment={custom_virtualenv}
|
||||
executionEnvironment={summary_fields?.default_environment}
|
||||
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
|
||||
label={t`Created`}
|
||||
@ -115,6 +125,7 @@ function OrganizationDetail({ organization }) {
|
||||
<Detail
|
||||
fullWidth
|
||||
label={t`Instance Groups`}
|
||||
helpText={t`The Instance Groups for this Organization to run on.`}
|
||||
value={
|
||||
<ChipGroup
|
||||
numChips={5}
|
||||
|
||||
@ -4,7 +4,7 @@ import { useHistory, useParams } from 'react-router-dom';
|
||||
import { CardBody } from 'components/Card';
|
||||
import { TokensAPI, UsersAPI } from 'api';
|
||||
import useRequest from 'hooks/useRequest';
|
||||
import UserTokenFrom from '../shared/UserTokenForm';
|
||||
import UserTokenForm from '../shared/UserTokenForm';
|
||||
|
||||
function UserTokenAdd({ onSuccessfulAdd }) {
|
||||
const history = useHistory();
|
||||
@ -36,7 +36,7 @@ function UserTokenAdd({ onSuccessfulAdd }) {
|
||||
|
||||
return (
|
||||
<CardBody>
|
||||
<UserTokenFrom
|
||||
<UserTokenForm
|
||||
handleCancel={handleCancel}
|
||||
handleSubmit={handleSubmit}
|
||||
submitError={submitError}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user