mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 08:46:39 +00:00
[UI] updated New Ticket Modal
This commit is contained in:
parent
ddbd949112
commit
bff1315ca1
3 changed files with 27 additions and 21 deletions
|
|
@ -56,3 +56,4 @@
|
|||
- [ ] Refactor Lists code
|
||||
- [ ] Query project members in UserPage
|
||||
- [ ] Query progression info in UserPage
|
||||
- [ ] Add info fields in New Ticket Form
|
||||
|
|
|
|||
BIN
app.db
BIN
app.db
Binary file not shown.
|
|
@ -49,7 +49,6 @@ export const NewTicketModal: FC<IProps> = ({
|
|||
action="New Ticket"
|
||||
handleAction={handleSubmit}
|
||||
>
|
||||
{/* <form onSubmit={handleSubmit}> */}
|
||||
<div className="row">
|
||||
<TextField
|
||||
variant="outlined"
|
||||
|
|
@ -81,10 +80,36 @@ export const NewTicketModal: FC<IProps> = ({
|
|||
multiline
|
||||
/>
|
||||
|
||||
<TextField
|
||||
id="project"
|
||||
name="project"
|
||||
select
|
||||
fullWidth
|
||||
required
|
||||
label="Project"
|
||||
value={projectId}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
e.preventDefault();
|
||||
setProjectId(e.target.value);
|
||||
}}
|
||||
// helperText="Please select your currency"
|
||||
variant="outlined"
|
||||
margin="normal"
|
||||
>
|
||||
{allProjects.map((p) => (
|
||||
<MenuItem key={p.id} value={p.id}>
|
||||
{p.title}
|
||||
</MenuItem>
|
||||
))}
|
||||
</TextField>
|
||||
|
||||
<TextField
|
||||
id="date"
|
||||
name="date"
|
||||
label="Due Date"
|
||||
type="date"
|
||||
margin="normal"
|
||||
fullWidth
|
||||
// defaultValue={new Date().toISOString()}
|
||||
// className={classes.textField}
|
||||
InputLabelProps={{
|
||||
|
|
@ -97,27 +122,7 @@ export const NewTicketModal: FC<IProps> = ({
|
|||
setEndingDate(e.target.value)
|
||||
}
|
||||
/>
|
||||
|
||||
<TextField
|
||||
id="project"
|
||||
select
|
||||
label="Project"
|
||||
value={projectId}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
e.preventDefault();
|
||||
setProjectId(e.target.value);
|
||||
}}
|
||||
// helperText="Please select your currency"
|
||||
variant="outlined"
|
||||
>
|
||||
{allProjects.map((p) => (
|
||||
<MenuItem key={p.id} value={p.id}>
|
||||
{p.title}
|
||||
</MenuItem>
|
||||
))}
|
||||
</TextField>
|
||||
</div>
|
||||
{/* </form> */}
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue