[UI] updated New Ticket Modal

This commit is contained in:
Ruidy Nemausat 2020-04-17 16:26:34 +02:00
parent ddbd949112
commit bff1315ca1
3 changed files with 27 additions and 21 deletions

View file

@ -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

Binary file not shown.

View file

@ -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>
);
};