Typerating FK and editor changes to match
This commit is contained in:
@@ -25,7 +25,7 @@ class AircraftType extends Model
|
||||
* @var array Validation rules
|
||||
*/
|
||||
public $rules = [
|
||||
'aircraft_manufacturer' => 'required',
|
||||
'aircraft_manufacturer_id' => 'required',
|
||||
'typerating_id' => 'required',
|
||||
'only_charter' => 'required',
|
||||
'type' => 'required',
|
||||
@@ -52,6 +52,7 @@ class AircraftType extends Model
|
||||
|
||||
public $belongsTo = [
|
||||
'aircraft_manufacturer' => 'GermanAirlinesVa\Fleet\Models\AircraftManufacturer',
|
||||
'typerating' => 'GermanAirlinesVa\Schooling\Models\Typerating',
|
||||
];
|
||||
|
||||
public $belongsToMany = [
|
||||
|
||||
@@ -2,12 +2,16 @@ columns:
|
||||
id:
|
||||
label: id
|
||||
type: text
|
||||
aircraft_manufacturers_id:
|
||||
label: aircraft_manufacturers_id
|
||||
type: number
|
||||
typerating_id:
|
||||
label: typerating_id
|
||||
type: number
|
||||
aircraft_manufacturer:
|
||||
label: aircraft_manufacturer
|
||||
relation: aircraft_manufacturer
|
||||
type: text
|
||||
valueFrom: name
|
||||
typerating:
|
||||
label: typerating
|
||||
relation: typerating
|
||||
type: text
|
||||
valueFrom: name
|
||||
only_charter:
|
||||
label: only_charter
|
||||
type: text
|
||||
|
||||
@@ -8,11 +8,13 @@ tabs:
|
||||
required: 1
|
||||
type: relation
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.operational'
|
||||
typerating_id:
|
||||
typerating:
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.typerating_id'
|
||||
nameFrom: name
|
||||
descriptionFrom: description
|
||||
span: auto
|
||||
required: 1
|
||||
type: number
|
||||
type: relation
|
||||
tab: 'germanairlinesva.fleet::lang.aircraft_types.tabs.operational'
|
||||
only_charter:
|
||||
label: 'germanairlinesva.fleet::lang.aircraft_types.only_charter'
|
||||
|
||||
Reference in New Issue
Block a user