Skip to content

Commit

Permalink
NOTAMs Widget Placement
Browse files Browse the repository at this point in the history
  • Loading branch information
FatihKoz committed May 7, 2024
1 parent f08c3d4 commit af17503
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
6 changes: 5 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ There are some options defined in this file for quick settings or for pre-define

"simbrief_extrafuel": 1, // Extra fuel field in SimBrief form
"simbrief_tankering": 1, // Tankering advice for Extra Fuel field
"simbrief_raw_wx": 1, // Raw wx display at SimBrief form
"simbrief_raw_wx": 1, // Raw WX display at SimBrief form (and NOTAMs with Disposable Basic)
"simbrief_rfinder": 1, // RouteFinder modal at SimBrief form
"simbrief_runways": 1, // Runway selection at SimBrief form (Disposable Basic)
"simbrief_taxitimes": 0, // Taxi Times droddown for Dep - Arrival Airports (with averages, Disposable Basic)
Expand Down Expand Up @@ -217,6 +217,10 @@ If you need more space in footer area, kindly check theme stylesheet to add your

## Release / Update Notes

07.MAY.24

* Added DisposableBasic Notams widget support (to Airport Details, Bids, SimBrief Form)

31.MAR.24

* Helper changes to match phpvms v7 improvements
Expand Down
13 changes: 11 additions & 2 deletions resources/views/layouts/Disposable_v3/airports/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
@endif
<li class="nav-item mx-1" role="presentation">
<a class="nav-link pt-1 pb-1" id="pills-weather-tab" data-toggle="pill" href="#pills-weather" role="tab" aria-controls="pills-weather" aria-selected="false">
@lang('disposable.weather')
@lang('disposable.weather') @if($DBasic) & NOTAMs @endif
</a>
</li>
@if(count($airport->files) > 0 && Auth::check())
Expand Down Expand Up @@ -130,7 +130,16 @@
</div>
</div>
<div class="tab-pane fade" id="pills-weather" role="tabpanel" aria-labelledby="pills-weather-tab">
@widget('Weather', ['icao' => $airport->icao])
<div class="row row-cols-xl-2">
<div class="col">
@widget('Weather', ['icao' => $airport->icao])
</div>
@if($DBasic)
<div class="col">
@widget('DBasic::Notams', ['icao' => $airport->icao])
</div>
@endif
</div>
</div>
@if($DBasic)
<div class="tab-pane fade" id="pills-wxmap" role="tabpanel" aria-labelledby="pills-wxmap-tab">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,22 @@
<div class="row collapse {{ $auto_extend }}" id="Details{{ $flight->id }}">
<div class="col-lg-4">
@widget('Weather', ['icao' => $flight->dpt_airport_id])
@if($DBasic)
@widget('DBasic::Notams', ['icao' => $flight->dpt_airport_id])
@endif
</div>
<div class="col-lg-4">
@widget('Weather', ['icao' => $flight->arr_airport_id])
@if($DBasic)
@widget('DBasic::Notams', ['icao' => $flight->arr_airport_id])
@endif
</div>
<div class="col-lg-4">
@if(filled($flight->alt_airport_id))
@widget('Weather', ['icao' => $flight->alt_airport_id])
@if($DBasic)
@widget('DBasic::Notams', ['icao' => $flight->alt_airport_id])
@endif
@endif
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,18 @@
</div>
@if(Theme::getSetting('simbrief_raw_wx'))
<div class="row row-cols-md-2">
<div class="col-lg">@widget('Weather', ['icao' => $flight->dpt_airport_id, 'raw_only' => true])</div>
<div class="col-lg">@widget('Weather', ['icao' => $flight->arr_airport_id, 'raw_only' => true])</div>
<div class="col-lg">
@widget('Weather', ['icao' => $flight->dpt_airport_id, 'raw_only' => true])
@if($DBasic)
@widget('DBasic::Notams', ['icao' => $flight->dpt_airport_id])
@endif
</div>
<div class="col-lg">
@widget('Weather', ['icao' => $flight->arr_airport_id, 'raw_only' => true])
@if($DBasic)
@widget('DBasic::Notams', ['icao' => $flight->arr_airport_id])
@endif
</div>
</div>
@endif
</div>
Expand Down

0 comments on commit af17503

Please sign in to comment.