This is my current layout in the image below. I have annotated the picture to demonstrate the desired layout changes, but I am struggling to implement them. Everything below the "New Post" button (buttons, pagination, search, table, etc.) is generated by DATATABLES. I attempted to manipulate the DOM without success.
The desired layout can be viewed here.
$(document).ready(function() {
$('#table-mh-admin-blog').DataTable({
dom: '<Blfr<t>ipl>',
buttons: [
'copy', 'excel', 'pdf', 'print'
],
select: true,
"order": [
[4, "asc"]
],
stateSave: true,
});
});
<div class="row ">
<h1>All Posts </h1>
<a class="btn btn-primary btn-sm" href="https://www.example.net/Blog_admin/blog_create/"><i class="fa fa-plus"></i> New Post</a>
<div>
<table id="table-mh-admin-blog" class="table table-condensed table-bordered table-striped table-hover" width="100%">
<thead>
<tr>
<th>Category</th>
<th>Author</th>
<th>Title / Post</th>
<th>Created</th>
<th>Updated</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Associations and Organizations</td>
<td>administrator</td>
<td>
<p> fffff</p>
<p>
fffff</td>
</p>
<td>2018-09-21 04:06:27</td>
<td>
N/A </td>
<td style="white-space:nowrap;">
<a class="btn btn-success btn-sm" href="/Blog_admin/blog_update/slug/fffff"><i class="fa fa-edit"></i></a>
<a class="btn btn-primary btn-sm" href="https://www.example.net/Blog_admin/blog_view_single/fffff"><i class="fa fa-eye"></i></a>
<a href="https://www.example.net/Blog_admin/blog_delete/id/190" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')"><i class="fa fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td>24354234234</td>
<td>administrator</td>
<td>
<p> test1</p>
<p>
asdasdasdasdasd richard testrtghfghf asdasd
</td>
<td>2018-09-29 05:37:09</td>
<td>
2018-10-08 22:48:30 </td>
<td style="white-space:nowrap;">
<a class="btn btn-success btn-sm" href="/Blog_admin/blog_update/slug/test1"><i class="fa fa-edit"></i></a>
<a class="btn btn-primary btn-sm" href="https://www.example.net/Blog_admin/blog_view_single/test1"><i class="fa fa-eye"></i></a>
<a href="https://www.example.net/Blog_admin/blog_delete/id/197" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')"><i class="fa fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td>24354234234</td>
<td>administrator</td>
<td>
<p> xxxxxxxxxxxxxxx</p>
<p>
</td>
<td>2018-10-06 07:12:59</td>
<td>
2018-10-08 22:37:32 </td>
<td style="white-space:nowrap;">
<a class="btn btn-success btn-sm" href="/Blog_admin/blog_update/slug/xxxxxxxxxxxxxxx"><i class="fa fa-edit"></i></a>
<a class="btn btn-primary btn-sm" href="https://www.example.net/Blog_admin/blog_view_single/xxxxxxxxxxxxxxx"><i class="fa fa-eye"></i></a>
<a href="https://www.example.net/Blog_admin/blog_delete/id/198" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')"><i class="fa fa-trash-alt"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="pagination-links">
</div>
</div>
<!-- end of row -->
Any assistance would be greatly appreciated.