2023-09-17 20:15:49 +02:00
|
|
|
{% extends 'pages/settings/settings.twig' %}
|
|
|
|
{% import 'macros/form.twig' as f %}
|
|
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
|
|
|
|
{% block title %}{{ __('settings.sessions') }}{% endblock %}
|
|
|
|
|
|
|
|
{% block row_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
{{ m.info(__('settings.sessions.info')) }}
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{ __('settings.sessions.id') }}</th>
|
|
|
|
<th>{{ __('settings.sessions.last_activity') }}</th>
|
|
|
|
<th>
|
|
|
|
{% if sessions|length > 1 %}
|
|
|
|
<form action="" enctype="multipart/form-data" method="post">
|
|
|
|
{{ csrf() }}
|
|
|
|
{{ f.hidden('id', 'all') }}
|
2023-12-21 13:08:29 +01:00
|
|
|
{{ f.delete(__('form.delete_all'), {'size': 'sm', 'confirm_title': __('form.delete_all'), 'title': ''}) }}
|
2023-09-17 20:15:49 +02:00
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{% for session in sessions %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
2023-09-18 18:18:33 +02:00
|
|
|
<pre>{{ session.id[:15] }}…</pre>
|
2023-09-17 20:15:49 +02:00
|
|
|
</td>
|
2023-11-23 14:30:46 +01:00
|
|
|
<td>{{ session.last_activity.format(__('general.datetime')) }}</td>
|
2023-09-17 20:15:49 +02:00
|
|
|
<td>
|
|
|
|
{% if session.id != current_session %}
|
|
|
|
<form action="" enctype="multipart/form-data" method="post">
|
|
|
|
{{ csrf() }}
|
2023-09-18 18:18:33 +02:00
|
|
|
{{ f.hidden('id', session.id[:15]) }}
|
2023-09-17 20:15:49 +02:00
|
|
|
{{ f.submit(
|
2023-11-05 16:29:07 +01:00
|
|
|
' ',
|
2023-12-21 13:08:29 +01:00
|
|
|
{'name': 'delete', 'btn_type': 'danger', 'size': 'sm', 'icon_left': 'trash', 'title': __('form.delete'),}
|
2023-09-17 20:15:49 +02:00
|
|
|
) }}
|
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
{{ __('settings.sessions.current') }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|