Use the new delete component to delete pages

parent 64e4d5c0
...@@ -62,7 +62,10 @@ ...@@ -62,7 +62,10 @@
<td> <td>
<div class="btn-group"> <div class="btn-group">
<a href="{{ URL::route('admin.page.page.edit', [$page->id]) }}" class="btn btn-default btn-flat"><i class="fa fa-pencil"></i></a> <a href="{{ URL::route('admin.page.page.edit', [$page->id]) }}" class="btn btn-default btn-flat"><i class="fa fa-pencil"></i></a>
<button data-toggle="modal" data-target="#modal-delete-confirmation" data-action-target="{{ route('admin.page.page.destroy', [$page->id]) }}" class="btn btn-danger btn-flat"><i class="fa fa-trash"></i></button>
<delete-button
delete-action="{{ route('api.page.page.destroy', [$page->id]) }}">
</delete-button>
</div> </div>
</td> </td>
</tr> </tr>
...@@ -109,7 +112,7 @@ ...@@ -109,7 +112,7 @@
}); });
}); });
$(function () { $(function () {
$('.data-table').dataTable({ var table = $('.data-table').dataTable({
"paginate": true, "paginate": true,
"lengthChange": true, "lengthChange": true,
"filter": true, "filter": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment