table deleting

This commit is contained in:
2018-07-29 19:11:55 +02:00
parent 8ff10904ce
commit 3bf9b68503
9 changed files with 67 additions and 5 deletions
+36 -1
View File
@@ -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