Add jail's status + directorys history admin
This commit is contained in:
@@ -47,4 +47,8 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if is_granted('ROLE_ADMIN') %}
|
||||
<a href="{{ path('directory_history', {'id': directory.id}) }}" class="btn btn-warning btn-sm" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}tooltip_directory_history{% endtrans %} (Admin)"><i class="fas fa-clock"></i></a>
|
||||
{% endif %}
|
||||
12
templates/directory/history.html.twig
Normal file
12
templates/directory/history.html.twig
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{{ directory.fullName }} - {% trans %}title_history{% endtrans %}{% endblock %}
|
||||
{% block subtitle %}#{{ directory.id }}: {{ directory.fullName }} - {% trans %}title_history{% endtrans %} {% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{% include '_cells/historyDisplay.html.twig' with {'history': history, notype: true} %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user