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:
parent
bffc4f911c
commit
61739ce266
@ -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…
Reference in New Issue
Block a user