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