Forms, Menu, DB

This commit is contained in:
Gogs
2021-06-03 10:06:09 +02:00
parent f4bff143a2
commit 42a9e2c8c7
11 changed files with 205 additions and 37 deletions
+3 -1
View File
@@ -18,7 +18,9 @@ class AircraftManufacturer extends Model
/**
* @var string The database table used by the model.
*/
public $table = 'germanairlinesva_fleet_aircraft_manufacturers';
// public $table = 'germanairlinesva_fleet_aircraft_manufacturers';
public $table = 'aircraft_manufacturers';
protected $connection = 'germanairlinesva_fleet';
/**
* @var array Validation rules
+3 -1
View File
@@ -18,7 +18,9 @@ class AircraftType extends Model
/**
* @var string The database table used by the model.
*/
public $table = 'germanairlinesva_fleet_aircraft_types';
// public $table = 'germanairlinesva_fleet_aircraft_types';
public $table = 'aircraft_types';
protected $connection = 'germanairlinesva_fleet';
/**
* @var array Validation rules
+5 -2
View File
@@ -2,13 +2,16 @@ 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: ''
size: large
span: auto
type: textarea
required: 1
type: richeditor
+3
View File
@@ -8,6 +8,9 @@ columns:
typerating_id:
label: typerating_id
type: number
only_charter:
label: only_charter
type: text
type:
label: type
type: text
+141 -7
View File
@@ -1,7 +1,141 @@
fields:
aircraft_manufacturer:
label: Relation
nameFrom: name
descriptionFrom: description
span: auto
type: relation
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'
options:
'No': 'no'
'Yes': 'yes'
showSearch: true
span: auto
required: 1
type: dropdown
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
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
-7
View File
@@ -1,7 +0,0 @@
fields:
manufacturer:
label: Relation
nameFrom: name
descriptionFrom: description
span: auto
type: relation