Rearrange flight creation form

This commit is contained in:
april 2024-01-05 11:52:06 -06:00
parent 0bfdc4f8e5
commit ed490803cb
2 changed files with 5 additions and 3 deletions

View File

@ -179,11 +179,11 @@ export default function NewFlight() {
field="time_start" field="time_start"
label="Start Time" label="Start Time"
/> />
<TimeInput form={form} field="time_stop" label="Stop Time" /> <TimeInput form={form} field="time_off" label="Time Off" />
</Group> </Group>
<Group justify="center" grow mt="md"> <Group justify="center" grow mt="md">
<TimeInput form={form} field="time_off" label="Time Off" />
<TimeInput form={form} field="time_down" label="Time Down" /> <TimeInput form={form} field="time_down" label="Time Down" />
<TimeInput form={form} field="time_stop" label="Stop Time" />
</Group> </Group>
</Fieldset> </Fieldset>
@ -232,7 +232,7 @@ export default function NewFlight() {
/> />
<NumberInput <NumberInput
label="Distance Cross-Country" label="Distance Cross-Country"
decimalScale={2} decimalScale={1}
min={0} min={0}
fixedDecimalScale fixedDecimalScale
leftSection={ leftSection={

View File

@ -20,6 +20,7 @@ function HourInput({
<NumberInput <NumberInput
label={label} label={label}
decimalScale={1} decimalScale={1}
step={0.1}
min={0} min={0}
fixedDecimalScale fixedDecimalScale
leftSection={ leftSection={
@ -57,6 +58,7 @@ function ZeroHourInput({
<NumberInput <NumberInput
label={label} label={label}
decimalScale={1} decimalScale={1}
step={0.1}
min={0} min={0}
fixedDecimalScale fixedDecimalScale
leftSection={ leftSection={