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]),
|
{{ Form::open(['url' => route('admin.pireps.destroy', [$pirep->id]),
|
||||||
'method' => 'delete',
|
'method' => 'delete',
|
||||||
'name' => 'delete_'.$pirep->id,
|
'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::button('Delete', ['type' => 'submit', 'class' => 'btn btn-danger']) }}
|
||||||
{{ Form::close() }}
|
{{ Form::close() }}
|
||||||
|
@ -327,7 +327,8 @@ flight reports that have been filed. You've been warned!
|
|||||||
'name' => 'submit',
|
'name' => 'submit',
|
||||||
'value' => 'Delete',
|
'value' => 'Delete',
|
||||||
'class' => 'btn btn-warning',
|
'class' => 'btn btn-warning',
|
||||||
'type' => 'submit'])
|
'type' => 'submit',
|
||||||
|
'onclick' => "return confirm('Are you sure you want to delete this PIREP?')"])
|
||||||
}}
|
}}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user