Nowa zakladka "Logi" w sekcji Integracje - podglad tabeli pp_log z paginacja, sortowaniem, filtrami i rozwijalnym kontekstem JSON. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
621 B
PHP
20 lines
621 B
PHP
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
|
|
|
|
<div class="mt15">
|
|
<a href="/admin/integrations/logs_clear/" class="btn btn-danger btn-sm"
|
|
onclick="return confirm('Na pewno chcesz usunac wszystkie logi?');">
|
|
<i class="fa fa-trash"></i> Wyczysc wszystkie logi
|
|
</a>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('body').on('click', '.log-context-btn', function(e) {
|
|
e.preventDefault();
|
|
var id = $(this).data('id');
|
|
$('#log-context-' + id).toggle();
|
|
$(this).text($('#log-context-' + id).is(':visible') ? 'Ukryj' : 'Pokaz');
|
|
});
|
|
});
|
|
</script>
|