Pirep delete confirmation (#1143)

* adds 100ll option to airport admin

* Adds mogas field too

* adds basic confirmation when deleting pirep
This commit is contained in:
Russell West 2021-04-15 13:39:42 +01:00 committed by GitHub
parent bffc4f911c
commit 61739ce266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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() }}

View File

@ -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