]>
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"> | |
b5b68779 NL |
19 | <form name="search_users" method="GET" action="{{ path('user_index')}}"> |
20 | {% if form_errors(searchForm) %} | |
21 | <span class="black-text">{{ form_errors(searchForm) }}</span> | |
22 | {% endif %} | |
23 | ||
24 | {% if form_errors(searchForm.term) %} | |
25 | <span class="black-text">{{ form_errors(searchForm.term) }}</span> | |
26 | {% endif %} | |
27 | ||
28 | {{ form_widget(searchForm.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'user.search.placeholder'} }) }} | |
29 | ||
30 | {{ form_rest(searchForm) }} | |
31 | </form> | |
c37515f8 TC |
32 | </div> |
33 | </div> | |
34 | ||
35 | <table class="bordered"> | |
36 | <thead> | |
37 | <tr> | |
38 | <th>{{ 'user.form.username_label'|trans }}</th> | |
39 | <th>{{ 'user.form.email_label'|trans }}</th> | |
50cfd810 | 40 | <th>{{ 'user.form.last_login_label'|trans }}</th> |
c37515f8 TC |
41 | <th>{{ 'user.list.actions'|trans }}</th> |
42 | </tr> | |
43 | </thead> | |
44 | <tbody> | |
45 | {% for user in users %} | |
46 | <tr> | |
47 | <td>{{ user.username }}</td> | |
48 | <td>{{ user.email }}</td> | |
49 | <td>{% if user.lastLogin %}{{ user.lastLogin|date('Y-m-d H:i:s') }}{% endif %}</td> | |
50 | <td> | |
51 | <a href="{{ path('user_edit', { 'id': user.id }) }}">{{ 'user.list.edit_action'|trans }}</a> | |
52 | </td> | |
53 | </tr> | |
54 | {% endfor %} | |
55 | </tbody> | |
56 | </table> | |
57 | <br /> | |
58 | <p> | |
59 | <a href="{{ path('user_new') }}" class="waves-effect waves-light btn">{{ 'user.list.create_new_one'|trans }}</a> | |
60 | </p> | |
50cfd810 TC |
61 | {% if users.getNbPages > 1 %} |
62 | {{ pagerfanta(users, 'twitter_bootstrap_translated', {'proximity': 1}) }} | |
63 | {% endif %} | |
152fcccd JB |
64 | </div> |
65 | </div> | |
66 | </div> | |
67 | </div> | |
68 | ||
69 | {% endblock %} |