table deleting
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
|
||||
<form method="POST" action="{{$table->settingsRoute}}" class="row justify-content-center"
|
||||
aria-label="New Table">
|
||||
aria-label="Change Table Metadata">
|
||||
|
||||
@csrf
|
||||
<div class="col-md-10">
|
||||
@@ -63,4 +63,39 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<form method="POST" action="{{$table->deleteRoute}}" class="row justify-content-center mt-3"
|
||||
aria-label="Delete table">
|
||||
|
||||
@csrf
|
||||
<div class="col-md-6 offset-md-1 border border-danger rounded py-3 border-2">
|
||||
@php(Widget::setLayout(0, 12))
|
||||
|
||||
{!! Widget::header(2, 'Delete Table') !!}
|
||||
|
||||
{!! Widget::par(
|
||||
'Table deletion cannot be undone. However, data from the table may
|
||||
remain accessible if any users forked it.', 'mb-0') !!}
|
||||
|
||||
<hr>
|
||||
|
||||
{!! Widget::par(
|
||||
'Confirm table removal by typing its name:') !!}
|
||||
|
||||
<div class="row form-group">
|
||||
<div class="col-md-12">
|
||||
<div class="form-inline">
|
||||
<input name="table-name"
|
||||
class="form-control {{ $errors->has('table-name') ? ' is-invalid' : '' }}"
|
||||
value="" placeholder="table-name">
|
||||
|
||||
<button type="submit" class="btn btn-danger ml-2">
|
||||
@icon(fa-save fa-pr)Delete
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user