]>
Commit | Line | Data |
---|---|---|
152fcccd JB |
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
2 | ||
3 | {% block title %}{{ 'user.page_title'|trans }}{% endblock %} | |
4 | ||
5 | {% block content %} | |
6 | ||
7 | <div class="row"> | |
8 | <div class="col s12"> | |
9 | <div class="card-panel"> | |
50cfd810 TC |
10 | {% if users.getNbPages > 1 %} |
11 | {{ pagerfanta(users, 'twitter_bootstrap_translated', {'proximity': 1}) }} | |
12 | {% endif %} | |
152fcccd | 13 | <div class="row"> |
c37515f8 | 14 | <div class="col s6"> |
152fcccd | 15 | <p class="help">{{ 'user.description'|trans|raw }}</p> |
152fcccd | 16 | </div> |
c37515f8 TC |
17 | <div class="col s6"> |
18 | <div class="input-field"> | |
19 | {{ render(controller("WallabagUserBundle:Manage:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }} | |
20 | </div> | |
21 | </div> | |
22 | ||
23 | <table class="bordered"> | |
24 | <thead> | |
25 | <tr> | |
26 | <th>{{ 'user.form.username_label'|trans }}</th> | |
27 | <th>{{ 'user.form.email_label'|trans }}</th> | |
50cfd810 | 28 | <th>{{ 'user.form.last_login_label'|trans }}</th> |
c37515f8 TC |
29 | <th>{{ 'user.list.actions'|trans }}</th> |
30 | </tr> | |
31 | </thead> | |
32 | <tbody> | |
33 | {% for user in users %} | |
34 | <tr> | |
35 | <td>{{ user.username }}</td> | |
36 | <td>{{ user.email }}</td> | |
37 | <td>{% if user.lastLogin %}{{ user.lastLogin|date('Y-m-d H:i:s') }}{% endif %}</td> | |
38 | <td> | |
39 | <a href="{{ path('user_edit', { 'id': user.id }) }}">{{ 'user.list.edit_action'|trans }}</a> | |
40 | </td> | |
41 | </tr> | |
42 | {% endfor %} | |
43 | </tbody> | |
44 | </table> | |
45 | <br /> | |
46 | <p> | |
47 | <a href="{{ path('user_new') }}" class="waves-effect waves-light btn">{{ 'user.list.create_new_one'|trans }}</a> | |
48 | </p> | |
50cfd810 TC |
49 | {% if users.getNbPages > 1 %} |
50 | {{ pagerfanta(users, 'twitter_bootstrap_translated', {'proximity': 1}) }} | |
51 | {% endif %} | |
152fcccd JB |
52 | </div> |
53 | </div> | |
54 | </div> | |
55 | </div> | |
56 | ||
57 | {% endblock %} |