Pirep delete confirmation (#1143)

* adds 100ll option to airport admin

* Adds mogas field too

* adds basic confirmation when deleting pirep
pull/1147/head
Russell West 3 years ago committed by GitHub
parent bffc4f911c
commit 61739ce266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,7 +31,8 @@
{{ Form::open(['url' => route('admin.pireps.destroy', [$pirep->id]),
'method' => 'delete',
'name' => 'delete_'.$pirep->id,
'id' => $pirep->id.'_delete'
'id' => $pirep->id.'_delete',
'onclick' => "return confirm('Are you sure?')"
]) }}
{{ Form::button('Delete', ['type' => 'submit', 'class' => 'btn btn-danger']) }}
{{ Form::close() }}

@ -327,7 +327,8 @@ flight reports that have been filed. You've been warned!
'name' => 'submit',
'value' => 'Delete',
'class' => 'btn btn-warning',
'type' => 'submit'])
'type' => 'submit',
'onclick' => "return confirm('Are you sure you want to delete this PIREP?')"])
}}
@endif

Loading…
Cancel
Save