Types refactor and localization
This commit is contained in:
+25
-1
@@ -24,7 +24,31 @@ class AircraftType extends Model
|
||||
/**
|
||||
* @var array Validation rules
|
||||
*/
|
||||
public $rules = [];
|
||||
public $rules = [
|
||||
'aircraft_manufacturer' => 'required',
|
||||
'typerating_id' => 'required',
|
||||
'only_charter' => 'required',
|
||||
'type' => 'required',
|
||||
'simbrief_type' => 'required',
|
||||
'aircraft_type_groups' => 'required',
|
||||
'dom' => 'required',
|
||||
'mpld' => 'required',
|
||||
'mzfm' => 'required',
|
||||
'fuel_capacity' => 'required',
|
||||
'mtom' => 'required',
|
||||
'mlam' => 'required',
|
||||
'description' => 'required',
|
||||
'wingspan' => 'required',
|
||||
'length' => 'required',
|
||||
'cruise_speed' => 'required',
|
||||
'range' => 'required',
|
||||
'engines' => 'required',
|
||||
'max_fl' => 'required',
|
||||
'capacity_flight_crew' => 'required',
|
||||
'capacity_cabin_crew' => 'required',
|
||||
'capacity_passengers' => 'required',
|
||||
'capacity_cargo' => 'required',
|
||||
];
|
||||
|
||||
public $belongsTo = [
|
||||
'aircraft_manufacturer' => 'GermanAirlinesVa\Fleet\Models\AircraftManufacturer',
|
||||
|
||||
@@ -1,145 +1,145 @@
|
||||
tabs:
|
||||
fields:
|
||||
aircraft_manufacturer:
|
||||
label: Manufacturer
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.aircraft_manufacturer'
|
||||
nameFrom: name
|
||||
descriptionFrom: description
|
||||
span: auto
|
||||
required: 1
|
||||
type: relation
|
||||
tab: Operational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.operational'
|
||||
typerating_id:
|
||||
label: Typerating
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.typerating_id'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Operational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.operational'
|
||||
only_charter:
|
||||
label: 'Charter Only'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.only_charter'
|
||||
span: auto
|
||||
required: 1
|
||||
type: switch
|
||||
tab: Operational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.operational'
|
||||
type:
|
||||
label: Type
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.type'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
tab: Operational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.operational'
|
||||
simbrief_type:
|
||||
label: 'SimBrief Type'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.simbrief_type'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
tab: Operational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.operational'
|
||||
aircraft_type_groups:
|
||||
label: 'Aircraft Type Groups'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.aircraft_type_groups'
|
||||
nameFrom: comment
|
||||
descriptionFrom: description
|
||||
span: auto
|
||||
required: 1
|
||||
type: relation
|
||||
tab: Operational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.operational'
|
||||
dom:
|
||||
label: DOM
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.dom'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Weights
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.weights'
|
||||
mpld:
|
||||
label: 'Max Payload'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.mpld'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Weights
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.weights'
|
||||
mzfm:
|
||||
label: 'Max ZFM'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.mzfm'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Weights
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.weights'
|
||||
fuel_capacity:
|
||||
label: 'Fuel Capacity'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.fuel_capacity'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Weights
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.weights'
|
||||
mtom:
|
||||
label: 'Max TOM'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.mtom'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Weights
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.weights'
|
||||
mlam:
|
||||
label: 'Max LAM'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.mlam'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Weights
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.weights'
|
||||
description:
|
||||
label: Description
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.description'
|
||||
size: large
|
||||
span: auto
|
||||
required: 1
|
||||
type: richeditor
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
wingspan:
|
||||
label: Wingspan
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.wingspan'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
length:
|
||||
label: Length
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.length'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
cruise_speed:
|
||||
label: 'Cruise Speed'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.cruise_speed'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
range:
|
||||
label: Range
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.range'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
engines:
|
||||
label: Engines
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.engines'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
max_fl:
|
||||
label: 'Max FL'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.max_fl'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
capacity_flight_crew:
|
||||
label: 'Flight Crew'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.capacity_flight_crew'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
capacity_cabin_crew:
|
||||
label: 'Cabin Crew'
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.capacity_cabin_crew'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
capacity_passengers:
|
||||
label: Passengers
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.capacity_passengers'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
capacity_cargo:
|
||||
label: Cargo
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.capacity_cargo'
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
tab: Informational
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.informational'
|
||||
|
||||
Reference in New Issue
Block a user