]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig
MOAR WIP
[github/wallabag/wallabag.git] / src / Wallabag / GroupBundle / Resources / views / Manage / index.html.twig
CommitLineData
36f30fa3
NL
1{% extends "WallabagCoreBundle::layout.html.twig" %}
2
3{% block title %}{{ 'group.page_title'|trans }}{% endblock %}
4
5{% block content %}
6
7 <div class="row">
8 <div class="col s12">
9 <div class="card-panel">
10 <div class="row">
11 <div class="input-field col s12">
12 <p class="help">{{ 'group.description'|trans|raw }}</p>
13
6a50b4cc 14 {% if groups is not empty %}
5847dd35 15 <table class="bordered responsive-table">
6a50b4cc
NL
16 <thead>
17 <tr>
18 <th>{{ 'group.form.name_label'|trans }}</th>
19 <th>{{ 'group.form.roles_label'|trans }}</th>
20 <th>{{ 'group.list.actions'|trans }}</th>
21 </tr>
22 </thead>
23 <tbody>
24 {% for group in groups %}
25 <tr>
26 <td>{{ group.name }}</td>
6a50b4cc 27 <td>
5847dd35
TC
28 {% if app.user in group.users and app.user.inGroup(group) %}
29 {{ 'group.user.inGroup' | transchoice(group.users | length) }}
30 {% else %}
31 {{ 'group.user.notInGroup' | transchoice(group.users | length) }}
32 {% endif %}
33 </td>
34 <td>
35 {% if app.user in group.users and app.user.inGroup(group) %}
36 {% if app.user.getGroupRoleForUser(group) >= 5 %}
37 <a href="{{ path('group_edit', { 'id': group.id }) }}" class="waves-effect waves-light btn tooltipped" data-delay="50" data-position="bottom" data-tooltip="{{ 'group.list.edit_action'|trans }}"><i class="material-icons">edit</i></a>
38 <a href="{{ path('group-manage', { 'group': group.id }) }}" class="waves-effect waves-light btn tooltipped" data-delay="50" data-position="bottom" data-tooltip="{{ 'group.manage.label'|trans }}"><i class="material-icons">settings_applications</i></a>
39 {% endif %}
40 <a href="{{ path('group-presentations', { 'group': group.id }) }}" class="waves-effect waves-light btn tooltipped" data-delay="50" data-position="bottom" data-tooltip="{{ 'group.entries.label'|trans }}"><i class="material-icons">view_list</i></a>
41 <a href="{{ path('group_leave', { 'group': group.id }) }}" class="waves-effect waves-light btn red tooltipped" data-delay="50" data-position="bottom" data-tooltip="{{ 'group.leave.label'|trans }}"><i class="material-icons">clear</i></a>
42 {% elseif app.user in group.users and not app.user.inGroup(group) %}
43 {{ 'group.requests.sent' | trans }}
44 {% else %}
45 <a href="{{ path('group_join', { 'group': group.id }) }}" class="waves-effect waves-light btn tooltipped" data-tooltip="{{ 'group.join.label'|trans }}" data-delay="50" data-position="bottom">
46 {% if group.acceptSystem == 3 %}
47 <i class="material-icons md-18 vertical-align-middle" data-toggle="tooltip" data-placement="bottom" title="{{ 'group.join'|trans }}">lock</i>
48 {% else %}
49 <i class="material-icons" data-toggle="tooltip" data-placement="bottom" title="{{ 'group.join'|trans }}">input</i>
50 {% endif %}
51 </a>
52 {% endif %}
6a50b4cc
NL
53 </td>
54 </tr>
55 {% endfor %}
56 </tbody>
57 </table>
58 {% endif %}
36f30fa3
NL
59 <br />
60 <p>
61 <a href="{{ path('group_new') }}" class="waves-effect waves-light btn">{{ 'group.list.create_new_one'|trans }}</a>
62 </p>
2041810a
TC
63 {% if groups.getNbPages > 1 %}
64 {{ pagerfanta(groups, 'twitter_bootstrap_translated', {'proximity': 1}) }}
65 {% endif %}
36f30fa3
NL
66 </div>
67 </div>
68 </div>
69 </div>
70 </div>
71
72{% endblock %}