Fix PIREP field error on file

This commit is contained in:
Nabeel Shahzad
2018-08-20 09:20:03 -05:00
parent 2dee3190ce
commit 5ee053cace
6 changed files with 15 additions and 8 deletions

View File

@@ -1,9 +1,11 @@
<table class="table table-responsive table-hover" id="flight-fields-table">
@if(count($pirep->fields))
<thead>
<th></th>
<th>Value</th>
<th>Source</th>
</thead>
@endif
<tbody>
@foreach($pirep->fields as $field)
<tr>

View File

@@ -270,7 +270,7 @@ flight reports that have been filed. You've been warned!
</div>
<div class="col-4">
@if(isset($pirep) && $pirep->fields)
<div class="form-container">
<h6><i class="fab fa-wpforms"></i>
&nbsp;{{ trans_choice('common.field', 2) }}
@@ -282,7 +282,7 @@ flight reports that have been filed. You've been warned!
@each('pireps.custom_fields', $pirep->fields, 'field')
</div>
</div>
@endif
<div id="fares_container">
@include('pireps.fares')
</div>