Skip to content

Commit

Permalink
Use the new delete component to delete pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 10, 2017
1 parent 64e4d5c commit f1b02e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Modules/Page/Resources/views/admin/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
<td>
<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>
<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>
</td>
</tr>
Expand Down Expand Up @@ -109,7 +112,7 @@
});
});
$(function () {
$('.data-table').dataTable({
var table = $('.data-table').dataTable({
"paginate": true,
"lengthChange": true,
"filter": true,
Expand Down

0 comments on commit f1b02e5

Please sign in to comment.