Creating options (like job template) on inventory screen

This commit is contained in:
John Westcott IV
2022-09-12 10:09:05 -04:00
parent e5fd42c4da
commit 6415671d93

View File

@@ -15,7 +15,11 @@ import LabelSelect from 'components/LabelSelect';
import InstanceGroupsLookup from 'components/Lookup/InstanceGroupsLookup';
import OrganizationLookup from 'components/Lookup/OrganizationLookup';
import ContentError from 'components/ContentError';
import { FormColumnLayout, FormFullWidthLayout } from 'components/FormLayout';
import {
FormColumnLayout,
FormFullWidthLayout,
FormCheckboxLayout,
} from 'components/FormLayout';
import getHelpText from './Inventory.helptext';
function InventoryFormFields({ inventory }) {
@@ -74,12 +78,6 @@ function InventoryFormFields({ inventory }) {
}}
fieldName="instanceGroups"
/>
<CheckboxField
id="option-prevent-instance-group-fallback"
name="prevent_instance_group_fallback"
label={t`Prevent Instance Group Fallback`}
tooltip={helpText.preventInstanceGroupFallback}
/>
<FormFullWidthLayout>
<FormGroup
label={t`Labels`}
@@ -93,6 +91,16 @@ function InventoryFormFields({ inventory }) {
createText={t`Create`}
/>
</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
tooltip={helpText.variables()}
id="inventory-variables"