79 lines
2 KiB
Twig
79 lines
2 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block body %}
|
|
<!-- BEGIN: Subheader -->
|
|
<div class="m-subheader">
|
|
<div class="d-flex align-items-center">
|
|
<div class="mr-auto">
|
|
<h3 class="m-subheader__title">Audit Logs</h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- END: Subheader -->
|
|
<div class="m-content">
|
|
<!--Begin::Section-->
|
|
<div class="row">
|
|
<div class="col-xl-12">
|
|
<div class="m-portlet m-portlet--mobile">
|
|
<div class="m-portlet__body">
|
|
<!--begin: Datatable -->
|
|
<div id="data-rows"></div>
|
|
<!--end: Datatable -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script>
|
|
$(function() {
|
|
console.log( {{ id }} );
|
|
var options = {
|
|
data: {
|
|
type: 'remote',
|
|
source: {
|
|
read: {
|
|
url: '{{ url('user_view_logs', {'id': id}) }}',
|
|
method: 'POST'
|
|
}
|
|
},
|
|
saveState: {
|
|
cookie: false,
|
|
webstorage: false
|
|
},
|
|
},
|
|
columns: [
|
|
{
|
|
field: 'time',
|
|
title: 'Time'
|
|
},
|
|
{
|
|
field: 'action',
|
|
title: 'Action'
|
|
},
|
|
{
|
|
field: 'content',
|
|
title: 'Content'
|
|
},
|
|
{
|
|
field: 'entity_id',
|
|
title: 'Entity ID'
|
|
},
|
|
{
|
|
field: 'entity_type',
|
|
title: 'Entity Type'
|
|
},
|
|
{
|
|
field: 'user',
|
|
title: 'User'
|
|
},
|
|
],
|
|
};
|
|
|
|
var table = $("#data-rows").mDatatable(options);
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|