Skip to content

Commit

Permalink
Merge pull request #1445 from VATSIM-UK/stand-labels
Browse files Browse the repository at this point in the history
fix: stand dimensions in tables
  • Loading branch information
AndyTWF authored Nov 11, 2023
2 parents 6aa9d64 + 93db660 commit ca458f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions app/Filament/Resources/StandResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ public static function form(Form $form): Form
->options(['A' => 'A', 'B' => 'B', 'C' => 'C', 'D' => 'D', 'E' => 'E', 'F' => 'F'])
->required(),
TextInput::make('max_aircraft_wingspan')
->label(self::translateFormPath('aircraft_type_wingspan.label'))
->helperText(self::translateFormPath('aircraft_type_wingspan.helper'))
->label(self::translateFormPath('aircraft_wingspan.label'))
->helperText(self::translateFormPath('aircraft_wingspan.helper'))
->hintIcon('heroicon-o-paper-airplane')
->reactive()
->numeric()
->minValue(1),
TextInput::make('max_aircraft_length')
->label(self::translateFormPath('aircraft_type_length.label'))
->helperText(self::translateFormPath('aircraft_type_length.helper'))
->label(self::translateFormPath('aircraft_length.label'))
->helperText(self::translateFormPath('aircraft_length.helper'))
->hintIcon('heroicon-o-paper-airplane')
->reactive()
->numeric()
Expand Down Expand Up @@ -184,10 +184,10 @@ public static function table(Table $table): Table
->searchable(),
Tables\Columns\TextColumn::make('aerodrome_reference_code')
->label(self::translateTablePath('columns.aerodrome_reference_code')),
Tables\Columns\TextColumn::make('maxAircraftWingspan.code')
Tables\Columns\TextColumn::make('max_aircraft_wingspan')
->label(self::translateTablePath('columns.max_size_wingspan'))
->default(self::DEFAULT_COLUMN_VALUE),
Tables\Columns\TextColumn::make('maxAircraftLength.code')
Tables\Columns\TextColumn::make('max_aircraft_length')
->label(self::translateTablePath('columns.max_size_length'))
->default(self::DEFAULT_COLUMN_VALUE),
Tables\Columns\TagsColumn::make('uniqueAirlines.icao_code')
Expand Down
4 changes: 2 additions & 2 deletions lang/en/stands/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
'terminal' => 'Terminal',
'identifier' => 'Identifier',
'aerodrome_reference_code' => 'Reference Code',
'max_size_wingspan' => 'Max Wingspan',
'max_size_length' => 'Max Length',
'max_size_wingspan' => 'Max Wingspan(m)',
'max_size_length' => 'Max Length(m)',
'airlines' => 'Airlines',
'used' => 'Used',
'priority' => 'Allocation Priority',
Expand Down

0 comments on commit ca458f7

Please sign in to comment.