Save user flights
This commit is contained in:
@@ -183,9 +183,9 @@ class FlightImportController extends Controller
|
||||
'aircraft_id' => 'nullable|integer|exists:aircraft,id',
|
||||
'registration' => 'nullable|string',
|
||||
'seat_number' => 'nullable|string',
|
||||
'seat_type_id' => 'nullable|integer|exists:seat_types,id',
|
||||
'flight_class_id' => 'nullable|integer|exists:flight_classes,id',
|
||||
'flight_reason_id' => 'nullable|integer|exists:flight_reasons,id',
|
||||
'seat_type_id' => 'required|integer|exists:seat_types,id',
|
||||
'flight_class_id' => 'required|integer|exists:flight_classes,id',
|
||||
'flight_reason_id' => 'required|integer|exists:flight_reasons,id',
|
||||
'note' => 'nullable|string',
|
||||
], [
|
||||
'imported_flight_id.required' => 'The flight you are trying to reconcile needs to be reimported or refreshed.',
|
||||
|
||||
@@ -14,19 +14,11 @@
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
text-decoration-color: rgba(56, 189, 248, 0.4);
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
.glass {
|
||||
background: rgba(17, 24, 39, 0.2); /* --surface at 60% */
|
||||
|
||||
@@ -30,4 +30,5 @@ defineProps<{
|
||||
text-decoration: underline;
|
||||
text-decoration-color: rgba(56, 189, 248, 0.4);
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -19,27 +19,27 @@ const name = computed(() => page?.props?.auth?.user?.name || 'there');
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col cols="12" md="6">
|
||||
<v-btn size="large" block href="#">
|
||||
<v-btn size="large" block href="#" prepend-icon="mdi-plus">
|
||||
Add a Flight
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" md="6">
|
||||
<v-btn size="large" block href="#">
|
||||
<v-btn size="large" block href="#" prepend-icon="mdi-pencil-outline">
|
||||
Edit Flights
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" md="6">
|
||||
<v-btn size="large" block :href="route('import.fr24')">
|
||||
<v-btn size="large" block :href="route('import.fr24')" prepend-icon="mdi-import">
|
||||
Import from FR24
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12" md="6">
|
||||
<v-btn size="large" block href="#">
|
||||
<v-btn size="large" block href="#" prepend-icon="mdi-account-outline">
|
||||
View Profile
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<v-btn size="large" block @click="router.post(route('logout'))">
|
||||
<v-btn size="large" block @click="router.post(route('logout'))" prepend-icon="mdi-logout">
|
||||
Log Out
|
||||
</v-btn>
|
||||
</v-col>
|
||||
|
||||
@@ -155,15 +155,16 @@ function submit() {
|
||||
|
||||
<!-- Airline / Aircraft -->
|
||||
<v-row>
|
||||
<v-col cols="12" md="6">
|
||||
<v-col cols="12" md="12">
|
||||
<AirlineSearchBox
|
||||
v-model="form.airline_id"
|
||||
:prefilled-options="flight.airline_options"
|
||||
:error-messages="submitForm.errors.airline_id"
|
||||
/>
|
||||
|
||||
</v-col>
|
||||
<v-col cols="12" md="6">
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="12" md="12">
|
||||
<AircraftSearchBox
|
||||
v-model="form.aircraft"
|
||||
:prefilled-options="flight.aircraft_options"
|
||||
@@ -172,19 +173,21 @@ function submit() {
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<!-- Seat Number / Seat Type / Flight Class / Flight Reason -->
|
||||
<v-row>
|
||||
<v-col cols="12" md="3">
|
||||
<v-col cols="12" md="6">
|
||||
<v-select v-model="form.flight_class" label="Class" :items="flight.flight_classes" :error-messages="submitForm.errors.flight_class_id" />
|
||||
</v-col>
|
||||
<v-col cols="12" md="6">
|
||||
<v-text-field v-model="form.seat_number" label="Seat Number" placeholder="22A" :error-messages="submitForm.errors.seat_number" />
|
||||
</v-col>
|
||||
<v-col cols="12" md="3">
|
||||
<v-select v-model="form.seat_type" label="Seat Type" :items="flight.seat_types" :error-messages="submitForm.errors.seat_type_id" clearable />
|
||||
</v-row>
|
||||
|
||||
<v-row>
|
||||
<v-col cols="12" md="6">
|
||||
<v-select v-model="form.seat_type" label="Seat Type" :items="flight.seat_types" :error-messages="submitForm.errors.seat_type_id" />
|
||||
</v-col>
|
||||
<v-col cols="12" md="3">
|
||||
<v-select v-model="form.flight_class" label="Class" :items="flight.flight_classes" :error-messages="submitForm.errors.flight_class_id" clearable />
|
||||
</v-col>
|
||||
<v-col cols="12" md="3">
|
||||
<v-select v-model="form.flight_reason" label="Reason" :items="flight.flight_reasons" :error-messages="submitForm.errors.flight_reason_id" clearable />
|
||||
<v-col cols="12" md="6">
|
||||
<v-select v-model="form.flight_reason" label="Reason" :items="flight.flight_reasons" :error-messages="submitForm.errors.flight_reason_id" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ use Inertia\Inertia;
|
||||
Route::domain(config('app.domain'))->group(
|
||||
function() {
|
||||
Route::get('/', function () {
|
||||
return Inertia::render('Index');
|
||||
return Inertia::render(auth()->check() ? 'Dashboard' : 'Auth/Login');
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user