fix pirep ids in sample; rename navs to flight reports

This commit is contained in:
Nabeel Shahzad 2018-02-24 16:05:00 -06:00
parent d0b3b27975
commit 3bbcd2a20d
5 changed files with 11 additions and 9 deletions

View File

@ -63,7 +63,7 @@ class CreatePirepTables extends Migration
$table->bigIncrements('id');
$table->string('pirep_id', \App\Models\Pirep::ID_MAX_LENGTH);
$table->unsignedInteger('fare_id');
$table->unsignedInteger('count')->nullable();
$table->unsignedInteger('count')->nullable()->default(0);
$table->index('pirep_id');
});

View File

@ -338,23 +338,23 @@ pireps:
pirep_fares:
- id: 1
pirep_id: pirep_id_1
pirep_id: pirepid_1
fare_id: 1
count: 300
- id: 2
pirep_id: pirep_id_1
pirep_id: pirepid_1
fare_id: 2
count: 25
- id: 3
pirep_id: pirep_id_1
pirep_id: pirepid_1
fare_id: 3
count: 10
- id: 4
pirep_id: pirep_id_2
pirep_id: pirepid_2
fare_id: 1
count: 200
- id: 5
pirep_id: pirep_id_2
pirep_id: pirepid_2
fare_id: 3
count: 15

View File

@ -10,7 +10,7 @@
<div class="collapse" id="operations_menu" aria-expanded="true">
<ul class="nav">
<li><a href="{!! url('/admin/pireps') !!}"><i class="pe-7s-cloud-upload"></i>pireps
<li><a href="{!! url('/admin/pireps') !!}"><i class="pe-7s-cloud-upload"></i>flight reports
<span data-toggle="tooltip" title="3 New"
class="badge bg-light-blue pull-right">3</span>
</a>

View File

@ -57,7 +57,7 @@
<li class="nav-item">
<a class="nav-link" href="{!! url('/pireps') !!}">
<i class="fas fa-cloud-upload-alt"></i>
<p>PIREPs</p>
<p>Flight Reports</p>
</a>
</li>
<li class="nav-item">

View File

@ -54,7 +54,9 @@
</table>
</div>
<div class="col-sm-6">
&nbsp;
<p style="text-align: right;">
<a href="{!! route('frontend.pireps.edit', ['id'=>$pirep->id]) !!}">edit</a>
</p>
</div>
</div>
</div>