Files
librenms-librenms/resources/views/widgets/syslog.blade.php
Niklas Vartiainen 1797f5c04a Change automatic widget updates to use bootgrid when possible (#13159)
* Changed widget data updates to use bootgrid.

* Fix widget settings page not displaying.

* Don't call both ajax method and bootgrid.

* Apply fixes from StyleCI

* remove commented code

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-04 21:16:50 -05:00

32 lines
1.1 KiB
PHP

<div class="table-responsive">
<table id="syslog" class="table table-hover table-condensed table-striped" data-ajax="true">
<thead>
<tr>
<th data-column-id="label"></th>
<th data-column-id="timestamp" data-order="desc">@lang('Timestamp')</th>
<th data-column-id="level">@lang('Level')</th>
<th data-column-id="device_id">@lang('Hostname')</th>
<th data-column-id="program">@lang('Program')</th>
<th data-column-id="msg">@lang('Message')</th>
<th data-column-id="priority">@lang('Priority')</th>
</tr>
</thead>
</table>
</div>
<script type="application/javascript">
$("#syslog").bootgrid({
ajax: true,
rowCount: [50, 100, 250, -1],
navigation: ! {{ $hidenavigation }},
post: function ()
{
return {
device: '{{ $device ?: '' }}',
device_group: '{{ $device_group }}',
level: '{{ $level }}'
};
},
url: "{{ url('/ajax/table/syslog') }}"
});
</script>