Manufacturer Controller refactor
This commit is contained in:
Gogs
2021-06-03 19:56:23 +02:00
parent 27410bf5c2
commit d6dbb3f1e7
47 changed files with 1011 additions and 926 deletions
+5 -1
View File
@@ -24,7 +24,11 @@ class AircraftManufacturer extends Model
/**
* @var array Validation rules
*/
public $rules = [];
public $rules = [
'name' => 'required',
'link' => 'required',
'history' => 'required',
];
public $hasMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
+17 -17
View File
@@ -1,18 +1,18 @@
columns:
id:
label: id
type: text
name:
label: name
type: text
searchable: true
sortable: true
history:
label: history
type: text
searchable: false
link:
label: link
type: text
searchable: false
sortable: false
id:
label: id
type: text
name:
label: name
type: text
searchable: true
sortable: true
history:
label: history
type: text
searchable: false
link:
label: link
type: text
searchable: false
sortable: false
+16 -16
View File
@@ -1,17 +1,17 @@
fields:
name:
label: 'germanairlinesva.fleet::lang.aircraft.manufacturers.name'
span: auto
required: 1
type: text
link:
label: 'germanairlinesva.fleet::lang.aircraft.manufacturers.link'
span: auto
required: 1
type: text
history:
label: 'germanairlinesva.fleet::lang.aircraft.manufacturers.history'
size: large
span: auto
required: 1
type: richeditor
name:
label: 'germanairlinesva.fleet::lang.aircraft_manufacturers.name'
span: auto
required: 1
type: text
link:
label: 'germanairlinesva.fleet::lang.aircraft_manufacturers.link'
span: auto
required: 1
type: text
history:
label: 'germanairlinesva.fleet::lang.aircraft_manufacturers.history'
size: large
span: auto
required: 1
type: richeditor
+69 -69
View File
@@ -1,70 +1,70 @@
columns:
id:
label: id
type: text
aircraft_manufacturers_id:
label: aircraft_manufacturers_id
type: number
typerating_id:
label: typerating_id
type: number
only_charter:
label: only_charter
type: text
type:
label: type
type: text
description:
label: description
type: text
simbrief_type:
label: simbrief_type
type: text
wingspan:
label: wingspan
type: text
length:
label: length
type: text
cruise_speed:
label: cruise_speed
type: text
range:
label: range
type: text
engines:
label: engines
type: text
dom:
label: dom
type: number
mpld:
label: mpld
type: number
mzfm:
label: mzfm
type: number
fuel_capacity:
label: fuel_capacity
type: number
mtom:
label: mtom
type: number
mlam:
label: mlam
type: number
max_fl:
label: max_fl
type: number
capacity_flight_crew:
label: capacity_flight_crew
type: number
capacity_cabin_crew:
label: capacity_cabin_crew
type: number
capacity_passengers:
label: capacity_passengers
type: number
capacity_cargo:
label: capacity_cargo
type: number
id:
label: id
type: text
aircraft_manufacturers_id:
label: aircraft_manufacturers_id
type: number
typerating_id:
label: typerating_id
type: number
only_charter:
label: only_charter
type: text
type:
label: type
type: text
description:
label: description
type: text
simbrief_type:
label: simbrief_type
type: text
wingspan:
label: wingspan
type: text
length:
label: length
type: text
cruise_speed:
label: cruise_speed
type: text
range:
label: range
type: text
engines:
label: engines
type: text
dom:
label: dom
type: number
mpld:
label: mpld
type: number
mzfm:
label: mzfm
type: number
fuel_capacity:
label: fuel_capacity
type: number
mtom:
label: mtom
type: number
mlam:
label: mlam
type: number
max_fl:
label: max_fl
type: number
capacity_flight_crew:
label: capacity_flight_crew
type: number
capacity_cabin_crew:
label: capacity_cabin_crew
type: number
capacity_passengers:
label: capacity_passengers
type: number
capacity_cargo:
label: capacity_cargo
type: number
+144 -144
View File
@@ -1,145 +1,145 @@
tabs:
fields:
aircraft_manufacturer:
label: Manufacturer
nameFrom: name
descriptionFrom: description
span: auto
required: 1
type: relation
tab: Operational
typerating_id:
label: Typerating
span: auto
required: 1
type: number
tab: Operational
only_charter:
label: 'Charter Only'
span: auto
required: 1
type: switch
tab: Operational
type:
label: Type
span: auto
required: 1
type: text
tab: Operational
simbrief_type:
label: 'SimBrief Type'
span: auto
required: 1
type: text
tab: Operational
aircraft_type_groups:
label: 'Aircraft Type Groups'
nameFrom: comment
descriptionFrom: description
span: auto
required: 1
type: relation
tab: Operational
dom:
label: DOM
span: auto
required: 1
type: number
tab: Weights
mpld:
label: 'Max Payload'
span: auto
required: 1
type: number
tab: Weights
mzfm:
label: 'Max ZFM'
span: auto
required: 1
type: number
tab: Weights
fuel_capacity:
label: 'Fuel Capacity'
span: auto
required: 1
type: number
tab: Weights
mtom:
label: 'Max TOM'
span: auto
required: 1
type: number
tab: Weights
mlam:
label: 'Max LAM'
span: auto
required: 1
type: number
tab: Weights
description:
label: Description
size: large
span: auto
required: 1
type: richeditor
tab: Informational
wingspan:
label: Wingspan
span: auto
required: 1
type: text
tab: Informational
length:
label: Length
span: auto
required: 1
type: text
tab: Informational
cruise_speed:
label: 'Cruise Speed'
span: auto
required: 1
type: text
tab: Informational
range:
label: Range
span: auto
required: 1
type: text
tab: Informational
engines:
label: Engines
span: auto
required: 1
type: text
tab: Informational
max_fl:
label: 'Max FL'
span: auto
required: 1
type: number
tab: Informational
capacity_flight_crew:
label: 'Flight Crew'
span: auto
required: 1
type: number
tab: Informational
capacity_cabin_crew:
label: 'Cabin Crew'
span: auto
required: 1
type: number
tab: Informational
capacity_passengers:
label: Passengers
span: auto
required: 1
type: number
tab: Informational
capacity_cargo:
label: Cargo
span: auto
required: 1
type: number
tab: Informational
fields:
aircraft_manufacturer:
label: Manufacturer
nameFrom: name
descriptionFrom: description
span: auto
required: 1
type: relation
tab: Operational
typerating_id:
label: Typerating
span: auto
required: 1
type: number
tab: Operational
only_charter:
label: 'Charter Only'
span: auto
required: 1
type: switch
tab: Operational
type:
label: Type
span: auto
required: 1
type: text
tab: Operational
simbrief_type:
label: 'SimBrief Type'
span: auto
required: 1
type: text
tab: Operational
aircraft_type_groups:
label: 'Aircraft Type Groups'
nameFrom: comment
descriptionFrom: description
span: auto
required: 1
type: relation
tab: Operational
dom:
label: DOM
span: auto
required: 1
type: number
tab: Weights
mpld:
label: 'Max Payload'
span: auto
required: 1
type: number
tab: Weights
mzfm:
label: 'Max ZFM'
span: auto
required: 1
type: number
tab: Weights
fuel_capacity:
label: 'Fuel Capacity'
span: auto
required: 1
type: number
tab: Weights
mtom:
label: 'Max TOM'
span: auto
required: 1
type: number
tab: Weights
mlam:
label: 'Max LAM'
span: auto
required: 1
type: number
tab: Weights
description:
label: Description
size: large
span: auto
required: 1
type: richeditor
tab: Informational
wingspan:
label: Wingspan
span: auto
required: 1
type: text
tab: Informational
length:
label: Length
span: auto
required: 1
type: text
tab: Informational
cruise_speed:
label: 'Cruise Speed'
span: auto
required: 1
type: text
tab: Informational
range:
label: Range
span: auto
required: 1
type: text
tab: Informational
engines:
label: Engines
span: auto
required: 1
type: text
tab: Informational
max_fl:
label: 'Max FL'
span: auto
required: 1
type: number
tab: Informational
capacity_flight_crew:
label: 'Flight Crew'
span: auto
required: 1
type: number
tab: Informational
capacity_cabin_crew:
label: 'Cabin Crew'
span: auto
required: 1
type: number
tab: Informational
capacity_passengers:
label: Passengers
span: auto
required: 1
type: number
tab: Informational
capacity_cargo:
label: Cargo
span: auto
required: 1
type: number
tab: Informational
+6 -6
View File
@@ -1,7 +1,7 @@
columns:
id:
label: id
type: number
comment:
label: comment
type: text
id:
label: id
type: number
comment:
label: comment
type: text
+4 -4
View File
@@ -1,5 +1,5 @@
fields:
comment:
label: Comment
span: auto
type: text
comment:
label: Comment
span: auto
type: text