mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
Move Admin Logs and Reports into Twig
This commit is contained in:
41
system/templates/admin.logs.html.twig
Normal file
41
system/templates/admin.logs.html.twig
Normal file
@@ -0,0 +1,41 @@
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Logs:</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<table id="tb_logs">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Log name</th>
|
||||
<th>Last updated</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for file in files %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ constant('ADMIN_URL') }}?p=logs&file={{ file.name }}">{{ file.name }}</a>
|
||||
</td>
|
||||
<td>{{ file.mtime|date('Y-m-d H:i:s') }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Log name</th>
|
||||
<th>Last updated</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$('#tb_logs').DataTable()
|
||||
})
|
||||
</script>
|
8
system/templates/admin.logs.view.html.twig
Normal file
8
system/templates/admin.logs.view.html.twig
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><b>{{ file }}</b></h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
{{ content|raw }}
|
||||
</div>
|
||||
</div>
|
41
system/templates/admin.reports.html.twig
Normal file
41
system/templates/admin.reports.html.twig
Normal file
@@ -0,0 +1,41 @@
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Reports:</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<table id="tb_reports">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Report name</th>
|
||||
<th>Last updated</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for file in files %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ constant('ADMIN_URL') }}?p=reports&file={{ file.name }}">{{ file.name }}</a>
|
||||
</td>
|
||||
<td>{{ file.mtime|date('Y-m-d H:i:s') }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>Report name</th>
|
||||
<th>Last updated</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#tb_reports').DataTable();
|
||||
|
||||
});
|
||||
</script>
|
Reference in New Issue
Block a user