spiff up process models new form
This commit is contained in:
parent
d5db55c32a
commit
2f1ebffe73
|
@ -40,7 +40,7 @@ export default function ProcessGroupNew() {
|
||||||
<main style={{ padding: '1rem 0' }}>
|
<main style={{ padding: '1rem 0' }}>
|
||||||
<ProcessBreadcrumb />
|
<ProcessBreadcrumb />
|
||||||
<h2>Add Process Group</h2>
|
<h2>Add Process Group</h2>
|
||||||
<form onSubmit={addProcessGroup}>
|
<Form onSubmit={addProcessGroup}>
|
||||||
<Form.Group className="mb-3" controlId="formDisplayName">
|
<Form.Group className="mb-3" controlId="formDisplayName">
|
||||||
<Form.Label>Display Name:</Form.Label>
|
<Form.Label>Display Name:</Form.Label>
|
||||||
<Form.Control
|
<Form.Control
|
||||||
|
@ -63,7 +63,7 @@ export default function ProcessGroupNew() {
|
||||||
<Button variant="primary" type="submit">
|
<Button variant="primary" type="submit">
|
||||||
Submit
|
Submit
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</Form>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useNavigate, useParams } from 'react-router-dom';
|
import { useNavigate, useParams } from 'react-router-dom';
|
||||||
|
import Button from 'react-bootstrap/Button';
|
||||||
|
import Form from 'react-bootstrap/Form';
|
||||||
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
||||||
import { slugifyString } from '../helpers';
|
import { slugifyString } from '../helpers';
|
||||||
import HttpService from '../services/HttpService';
|
import HttpService from '../services/HttpService';
|
||||||
|
@ -45,23 +47,18 @@ export default function ProcessModelNew() {
|
||||||
<main style={{ padding: '1rem 0' }}>
|
<main style={{ padding: '1rem 0' }}>
|
||||||
<ProcessBreadcrumb />
|
<ProcessBreadcrumb />
|
||||||
<h2>Add Process Model</h2>
|
<h2>Add Process Model</h2>
|
||||||
<form onSubmit={addProcessModel}>
|
<Form onSubmit={addProcessModel}>
|
||||||
<label htmlFor="display_name">
|
<Form.Group className="mb-3" controlId="formDisplayName">
|
||||||
Display Name:
|
<Form.Label>Display Name:</Form.Label>
|
||||||
<input
|
<Form.Control
|
||||||
name="display_name"
|
|
||||||
id="display_name"
|
|
||||||
type="text"
|
type="text"
|
||||||
value={displayName}
|
value={displayName}
|
||||||
onChange={(e) => onDisplayNameChanged(e.target.value)}
|
onChange={(e) => onDisplayNameChanged(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</label>
|
</Form.Group>
|
||||||
<br />
|
<Form.Group className="mb-3" controlId="formIdentifier">
|
||||||
<label htmlFor="id">
|
<Form.Label>ID:</Form.Label>
|
||||||
ID:
|
<Form.Control
|
||||||
<input
|
|
||||||
name="id"
|
|
||||||
id="id"
|
|
||||||
type="text"
|
type="text"
|
||||||
value={identifier}
|
value={identifier}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
@ -69,10 +66,11 @@ export default function ProcessModelNew() {
|
||||||
setIdHasBeenUpdatedByUser(true);
|
setIdHasBeenUpdatedByUser(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</label>
|
</Form.Group>
|
||||||
<br />
|
<Button variant="primary" type="submit">
|
||||||
<button type="submit">Submit</button>
|
Submit
|
||||||
</form>
|
</Button>
|
||||||
|
</Form>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue