#21 adjust the pirep view/edit form

This commit is contained in:
Nabeel Shahzad
2017-07-13 22:09:38 -05:00
parent b531fb4d15
commit fc6253b46f
9 changed files with 185 additions and 84 deletions

View File

@@ -77,7 +77,7 @@ class CreatePirepsTable extends Migration
$table->uuid('pirep_id');
$table->string('name', 50);
$table->text('value');
$table->tinyInteger('source')->default(0);
$table->string('source')->nullable();
$table->timestamps();
$table->index('pirep_id');

View File

@@ -160,7 +160,8 @@ flight_fields:
value: B
pireps:
- user_id: 1
- id: pirepid_1
user_id: 1
flight_id: flightid_1
aircraft_id: 1
dpt_airport_id: 1
@@ -169,3 +170,15 @@ pireps:
level: 320
status: -1
notes: just a pilot report
pirep_fields:
- id: 1
name: arrival gate
required: 0
pirep_field_values:
- id: 1
pirep_id: pirepid_1
name: arrival gate
value: B14
source: manual