wallabag/src/Wallabag/UserBundle/Resources/views/manage.html.twig
Jeremy Benoist 152fcccd44
Add users management UI
- remove the “add a user” from the config page
- add a CRUD on user
- fix some missing translations (+ bad indentation)
2016-10-02 11:08:53 +02:00

44 lines
1.8 KiB
Twig

{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}{{ 'user.manage.page_title'|trans }}{% endblock %}
{% block content %}
<div class="row">
<div class="col s12">
<div class="card-panel">
<div class="row">
<div class="input-field col s12">
<p class="help">{{ 'user.manage.description'|trans|raw }}</p>
<table class="bordered">
<thead>
<tr>
<th>{{ 'user.manage.field.username'|trans }}</th>
<th>{{ 'user.manage.field.email'|trans }}</th>
<th>{{ 'user.manage.field.last_login'|trans }}</th>
<th>{{ 'user.manage.field.locked'|trans }}</th>
<th>{{ 'user.manage.action'|trans }}</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.username }}</td>
<td>{{ user.email }}</td>
<td>{{ user.lastLogin|date('d/m/Y H:i:s') }}</td>
<td>{{ user.locked ? 'yes' : 'no' }}</td>
<td>edit - delete</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}