Compare commits

...

4 Commits

Author SHA1 Message Date
Your Name fe3bc46636 Aircraft Airport Relation 2021-08-04 17:42:26 +02:00
Your Name 7244639051 Readme 2021-08-04 13:42:58 +02:00
Your Name 33ed2f4d00 AC Type Relation 2021-08-04 13:41:40 +02:00
Your Name f75136f1e5 Formating .htm removed 2021-08-04 12:35:30 +02:00
5 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
- BelongsTo AircraftType
- BelongsToMany AircraftTypeGroup
- **TODO** BelongsTo Airport (External DB)
- BelongsTo Airport (2x, External DB, creation in Routes Plugin)
## AircraftTypeGroup
+2
View File
@@ -33,5 +33,7 @@ class Aircraft extends Model
public $belongsTo = [
'aircraft_type' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
'home_airport' => 'GermanAirlinesVa\Routes\Models\Airport',
'airport' => 'GermanAirlinesVa\Routes\Models\Airport',
];
}
+12 -6
View File
@@ -2,15 +2,21 @@ columns:
id:
label: id
type: text
aircraft_type_id:
label: aircraft_type_id
aircraft_type:
label: aircraft_type
type: text
home_airport_id:
label: home_airport_id
relation: aircraft_type
valueFrom: type
home_airport:
label: home_airport
type: text
airport_id:
label: airport_id
relation: home_airport
valueFrom: icao
airport:
label: airport
type: text
relation: airport
valueFrom: icao
name:
label: name
type: text
+4 -2
View File
@@ -16,8 +16,10 @@ fields:
span: auto
required: 1
type: text
home_airport_id:
home_airport:
label: 'germanairlinesva.fleet::lang.aircrafts.home_base'
nameFrom: name
descriptionFrom: description
span: auto
required: 1
type: number
type: relation
+1 -1
View File
@@ -11,6 +11,6 @@
},
"scripts": {
"preinstall": "git config core.hooksPath .hooks",
"format": "prettier --write './**/*.{php,html,htm,yaml}'"
"format": "prettier --write './**/*.{php,html,yaml}'"
}
}