add support for deleting service option

This commit is contained in:
Dane Everitt 2016-02-20 16:55:05 -05:00
parent 1e9bf1c220
commit dcfdb89e3c
4 changed files with 56 additions and 0 deletions

View file

@ -185,6 +185,18 @@
@endforeach
</tbody>
</table>
<form action="{{ route('admin.services.option', $option->id) }}" method="POST">
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger">
Deleting an option is an irreversible action. An option can <em>only</em> be deleted if no servers are associated with it.
</div>
{!! csrf_field() !!}
{!! method_field('DELETE') !!}
<input type="submit" class="btn btn-sm btn-danger pull-right" value="Delete Option" />
</div>
</div>
</form>
</div>
<script>
$(document).ready(function () {