mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Creating options (like job template) on inventory screen
This commit is contained in:
@@ -15,7 +15,11 @@ import LabelSelect from 'components/LabelSelect';
|
|||||||
import InstanceGroupsLookup from 'components/Lookup/InstanceGroupsLookup';
|
import InstanceGroupsLookup from 'components/Lookup/InstanceGroupsLookup';
|
||||||
import OrganizationLookup from 'components/Lookup/OrganizationLookup';
|
import OrganizationLookup from 'components/Lookup/OrganizationLookup';
|
||||||
import ContentError from 'components/ContentError';
|
import ContentError from 'components/ContentError';
|
||||||
import { FormColumnLayout, FormFullWidthLayout } from 'components/FormLayout';
|
import {
|
||||||
|
FormColumnLayout,
|
||||||
|
FormFullWidthLayout,
|
||||||
|
FormCheckboxLayout,
|
||||||
|
} from 'components/FormLayout';
|
||||||
import getHelpText from './Inventory.helptext';
|
import getHelpText from './Inventory.helptext';
|
||||||
|
|
||||||
function InventoryFormFields({ inventory }) {
|
function InventoryFormFields({ inventory }) {
|
||||||
@@ -74,12 +78,6 @@ function InventoryFormFields({ inventory }) {
|
|||||||
}}
|
}}
|
||||||
fieldName="instanceGroups"
|
fieldName="instanceGroups"
|
||||||
/>
|
/>
|
||||||
<CheckboxField
|
|
||||||
id="option-prevent-instance-group-fallback"
|
|
||||||
name="prevent_instance_group_fallback"
|
|
||||||
label={t`Prevent Instance Group Fallback`}
|
|
||||||
tooltip={helpText.preventInstanceGroupFallback}
|
|
||||||
/>
|
|
||||||
<FormFullWidthLayout>
|
<FormFullWidthLayout>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t`Labels`}
|
label={t`Labels`}
|
||||||
@@ -93,6 +91,16 @@ function InventoryFormFields({ inventory }) {
|
|||||||
createText={t`Create`}
|
createText={t`Create`}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
<FormGroup fieldId="inventory-option-checkboxes" label={t`Options`}>
|
||||||
|
<FormCheckboxLayout>
|
||||||
|
<CheckboxField
|
||||||
|
id="option-prevent-instance-group-fallback"
|
||||||
|
name="prevent_instance_group_fallback"
|
||||||
|
label={t`Prevent Instance Group Fallback`}
|
||||||
|
tooltip={helpText.preventInstanceGroupFallback}
|
||||||
|
/>
|
||||||
|
</FormCheckboxLayout>
|
||||||
|
</FormGroup>
|
||||||
<VariablesField
|
<VariablesField
|
||||||
tooltip={helpText.variables()}
|
tooltip={helpText.variables()}
|
||||||
id="inventory-variables"
|
id="inventory-variables"
|
||||||
|
|||||||
Reference in New Issue
Block a user