|
|
@ -9,6 +9,7 @@ import TextField from '@material-ui/core/TextField';
|
|
|
|
import Select from '@material-ui/core/Select';
|
|
|
|
import Select from '@material-ui/core/Select';
|
|
|
|
import MenuItem from '@material-ui/core/MenuItem';
|
|
|
|
import MenuItem from '@material-ui/core/MenuItem';
|
|
|
|
import FormControl from '@material-ui/core/FormControl';
|
|
|
|
import FormControl from '@material-ui/core/FormControl';
|
|
|
|
|
|
|
|
import FormHelperText from '@material-ui/core/FormHelperText';
|
|
|
|
import InputLabel from '@material-ui/core/InputLabel';
|
|
|
|
import InputLabel from '@material-ui/core/InputLabel';
|
|
|
|
import * as colors from '@material-ui/core/colors';
|
|
|
|
import * as colors from '@material-ui/core/colors';
|
|
|
|
|
|
|
|
|
|
|
@ -262,6 +263,26 @@ class TaskEdit extends React.PureComponent<PropsType> {
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</FormControl>
|
|
|
|
</FormControl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<FormControl>
|
|
|
|
|
|
|
|
<FormHelperText>Start</FormHelperText>
|
|
|
|
|
|
|
|
<DateTimePicker
|
|
|
|
|
|
|
|
dateOnly={this.state.allDay}
|
|
|
|
|
|
|
|
placeholder="Start"
|
|
|
|
|
|
|
|
value={this.state.start}
|
|
|
|
|
|
|
|
onChange={(date?: Date) => this.setState({ start: date })}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</FormControl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<FormControl>
|
|
|
|
|
|
|
|
<FormHelperText>Due</FormHelperText>
|
|
|
|
|
|
|
|
<DateTimePicker
|
|
|
|
|
|
|
|
dateOnly={this.state.allDay}
|
|
|
|
|
|
|
|
placeholder="Due"
|
|
|
|
|
|
|
|
value={this.state.due}
|
|
|
|
|
|
|
|
onChange={(date?: Date) => this.setState({ due: date })}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</FormControl>
|
|
|
|
|
|
|
|
|
|
|
|
<FormGroup>
|
|
|
|
<FormGroup>
|
|
|
|
<FormControlLabel
|
|
|
|
<FormControlLabel
|
|
|
|
control={
|
|
|
|
control={
|
|
|
@ -276,24 +297,6 @@ class TaskEdit extends React.PureComponent<PropsType> {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<DateTimePicker
|
|
|
|
|
|
|
|
dateOnly={this.state.allDay}
|
|
|
|
|
|
|
|
placeholder="Start"
|
|
|
|
|
|
|
|
value={this.state.start}
|
|
|
|
|
|
|
|
onChange={(date?: Date) => this.setState({ start: date })}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<DateTimePicker
|
|
|
|
|
|
|
|
dateOnly={this.state.allDay}
|
|
|
|
|
|
|
|
placeholder="End"
|
|
|
|
|
|
|
|
value={this.state.due}
|
|
|
|
|
|
|
|
onChange={(date?: Date) => this.setState({ due: date })}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextField
|
|
|
|
<TextField
|
|
|
|
name="location"
|
|
|
|
name="location"
|
|
|
|
placeholder="Add location"
|
|
|
|
placeholder="Add location"
|
|
|
|