mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
show all advanced JT fields on edit form
This commit is contained in:
@@ -64,6 +64,7 @@ class JobTemplateForm extends Component {
|
|||||||
labels: { results: [] },
|
labels: { results: [] },
|
||||||
project: null,
|
project: null,
|
||||||
},
|
},
|
||||||
|
isNew: true,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -341,6 +342,7 @@ class JobTemplateForm extends Component {
|
|||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
const AdvancedFieldsWrapper = template.isNew ? CollapsibleSection : 'div';
|
||||||
return (
|
return (
|
||||||
<Form autoComplete="off" onSubmit={handleSubmit}>
|
<Form autoComplete="off" onSubmit={handleSubmit}>
|
||||||
<FormRow>
|
<FormRow>
|
||||||
@@ -479,7 +481,7 @@ class JobTemplateForm extends Component {
|
|||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</FormRow>
|
</FormRow>
|
||||||
<CollapsibleSection label="Advanced">
|
<AdvancedFieldsWrapper label="Advanced">
|
||||||
<FormRow>
|
<FormRow>
|
||||||
<FormField
|
<FormField
|
||||||
id="template-forks"
|
id="template-forks"
|
||||||
@@ -723,7 +725,7 @@ class JobTemplateForm extends Component {
|
|||||||
/>
|
/>
|
||||||
</FormRow>
|
</FormRow>
|
||||||
</div>
|
</div>
|
||||||
</CollapsibleSection>
|
</AdvancedFieldsWrapper>
|
||||||
<FormActionGroup onCancel={handleCancel} onSubmit={handleSubmit} />
|
<FormActionGroup onCancel={handleCancel} onSubmit={handleSubmit} />
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user