Add watchdogs filters
This commit is contained in:
@@ -5,6 +5,26 @@
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col mb-5">
|
||||
<h4>Filtres</h4>
|
||||
<h5>Type: </h5>
|
||||
<a href="{{ path('admin_watchdog') }}" class="btn btn-{{type == null ? 'info' : 'primary'}} m-1">*</a>
|
||||
{% for t in buttonsType %}
|
||||
{% set btntype = t.objectClass|replace({'App\\Entity\\': ''}) %}
|
||||
<a href="{{ path('admin_watchdog_type',{type: btntype}) }}" class="btn btn-{{type == btntype ? 'info' : 'primary'}} m-1">{{ btntype }}</a>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% if buttonsAction != null %}
|
||||
<h5>Action: </h5>
|
||||
<a href="{{ path('admin_watchdog_type',{type: type}) }}" class="btn btn-{{action == null ? 'info' : 'primary'}} m-1">*</a>
|
||||
{% for a in buttonsAction %}
|
||||
<a href="{{ path('admin_watchdog_type_action',{type: type, action: a.action }) }}" class="btn btn-{{action == a.action ? 'info' : 'primary'}} m-1">{{ a.action }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{% include '_cells/historyDisplay.html.twig' with {'history': pagination} %}
|
||||
|
||||
Reference in New Issue
Block a user