2016-09-30 20:09:06 +02:00
|
|
|
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
|
|
|
|
|
|
|
{% block title %}{{ 'user.page_title'|trans }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
|
|
|
<div class="card-panel">
|
2017-04-27 16:23:54 +02:00
|
|
|
{% if users.getNbPages > 1 %}
|
|
|
|
{{ pagerfanta(users, 'twitter_bootstrap_translated', {'proximity': 1}) }}
|
|
|
|
{% endif %}
|
2016-09-30 20:09:06 +02:00
|
|
|
<div class="row">
|
2017-04-27 15:58:32 +02:00
|
|
|
<div class="col s6">
|
2016-09-30 20:09:06 +02:00
|
|
|
<p class="help">{{ 'user.description'|trans|raw }}</p>
|
|
|
|
</div>
|
2017-04-27 15:58:32 +02:00
|
|
|
<div class="col s6">
|
|
|
|
<div class="input-field">
|
|
|
|
{{ render(controller("WallabagUserBundle:Manage:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{ 'user.form.username_label'|trans }}</th>
|
|
|
|
<th>{{ 'user.form.email_label'|trans }}</th>
|
2017-04-27 16:23:54 +02:00
|
|
|
<th>{{ 'user.form.last_login_label'|trans }}</th>
|
2017-04-27 15:58:32 +02:00
|
|
|
<th>{{ 'user.list.actions'|trans }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for user in users %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ user.username }}</td>
|
|
|
|
<td>{{ user.email }}</td>
|
|
|
|
<td>{% if user.lastLogin %}{{ user.lastLogin|date('Y-m-d H:i:s') }}{% endif %}</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ path('user_edit', { 'id': user.id }) }}">{{ 'user.list.edit_action'|trans }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br />
|
|
|
|
<p>
|
|
|
|
<a href="{{ path('user_new') }}" class="waves-effect waves-light btn">{{ 'user.list.create_new_one'|trans }}</a>
|
|
|
|
</p>
|
2017-04-27 16:23:54 +02:00
|
|
|
{% if users.getNbPages > 1 %}
|
|
|
|
{{ pagerfanta(users, 'twitter_bootstrap_translated', {'proximity': 1}) }}
|
|
|
|
{% endif %}
|
2016-09-30 20:09:06 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|