Display images on flight logs
This commit is contained in:
@@ -337,12 +337,32 @@ export default function FlightForm({
|
||||
|
||||
<Fieldset legend="Start/Stop" mt="md">
|
||||
<Group justify="center" grow>
|
||||
<TimeInput form={form} field="time_start" label="Start Time" />
|
||||
<TimeInput form={form} field="time_off" label="Time Off" />
|
||||
<TimeInput
|
||||
form={form}
|
||||
field="time_start"
|
||||
label="Start Time"
|
||||
allowLeadingZeros
|
||||
/>
|
||||
<TimeInput
|
||||
form={form}
|
||||
field="time_off"
|
||||
label="Time Off"
|
||||
allowLeadingZeros
|
||||
/>
|
||||
</Group>
|
||||
<Group justify="center" grow mt="md">
|
||||
<TimeInput form={form} field="time_down" label="Time Down" />
|
||||
<TimeInput form={form} field="time_stop" label="Stop Time" />
|
||||
<TimeInput
|
||||
form={form}
|
||||
field="time_down"
|
||||
label="Time Down"
|
||||
allowLeadingZeros
|
||||
/>
|
||||
<TimeInput
|
||||
form={form}
|
||||
field="time_stop"
|
||||
label="Stop Time"
|
||||
allowLeadingZeros
|
||||
/>
|
||||
</Group>
|
||||
</Fieldset>
|
||||
|
||||
|
@@ -8,10 +8,12 @@ export default function TimeInput({
|
||||
form,
|
||||
label,
|
||||
field,
|
||||
allowLeadingZeros = false,
|
||||
}: {
|
||||
form: UseFormReturnType<FlightFormSchema>;
|
||||
field: string;
|
||||
label: string;
|
||||
allowLeadingZeros?: boolean;
|
||||
}) {
|
||||
const field_key = field as keyof typeof form.getTransformedValues;
|
||||
|
||||
@@ -21,6 +23,7 @@ export default function TimeInput({
|
||||
allowDecimal={false}
|
||||
min={0}
|
||||
max={2359}
|
||||
allowLeadingZeros={allowLeadingZeros}
|
||||
leftSection={
|
||||
<CloseButton
|
||||
aria-label="Clear input"
|
||||
|
Reference in New Issue
Block a user