#48 fixed some db field errors
This commit is contained in:
parent
4f2f08af62
commit
35133fe0e6
@ -101,6 +101,7 @@ class FlightController extends BaseController
|
||||
$avail_subfleets = $this->getAvailSubfleets($flight);
|
||||
return view('admin.flights.show', [
|
||||
'flight' => $flight,
|
||||
'fields' => $flight->fields(),
|
||||
'avail_subfleets' => $avail_subfleets,
|
||||
]);
|
||||
}
|
||||
@ -124,6 +125,7 @@ class FlightController extends BaseController
|
||||
$avail_subfleets = $this->getAvailSubfleets($flight);
|
||||
return view('admin.flights.edit', [
|
||||
'flight' => $flight,
|
||||
'fields' => $flight->fields(),
|
||||
'avail_subfleets' => $avail_subfleets,
|
||||
]);
|
||||
}
|
||||
|
@ -23,8 +23,6 @@ class CreateFaresTable extends Migration
|
||||
$table->string('notes')->nullable();
|
||||
$table->boolean('active')->default(true);
|
||||
$table->timestamps();
|
||||
|
||||
$table->primary('id');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ class CreateFlightsTable extends Migration
|
||||
$table->text('route')->nullable();
|
||||
$table->text('dpt_time', 10)->nullable();
|
||||
$table->text('arr_time', 10)->nullable();
|
||||
$table->double('flight_time', 19, 2)->unsigned();
|
||||
$table->double('flight_time', 19, 2)->unsigned()->nullable();
|
||||
$table->text('notes')->nullable();
|
||||
$table->boolean('active')->default(true);
|
||||
$table->timestamps();
|
||||
|
@ -153,6 +153,12 @@ flights:
|
||||
arr_airport_id: 2
|
||||
route: KAUS KJFK
|
||||
|
||||
flight_fields:
|
||||
- id: 1
|
||||
flight_id: 1
|
||||
name: terminal
|
||||
value: B
|
||||
|
||||
pireps:
|
||||
- user_id: 1
|
||||
flight_id: 1
|
||||
|
@ -36,7 +36,7 @@
|
||||
<td>
|
||||
{!! Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) !!}
|
||||
<div class='btn-group'>
|
||||
<a href="{!! route('admin.flights.show', [$flight->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
|
||||
{{--<a href="{!! route('admin.flights.show', [$flight->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>--}}
|
||||
<a href="{!! route('admin.flights.edit', [$flight->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
|
||||
{!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user