summaryrefslogtreecommitdiff
path: root/resources/views/pages/role/index.twig
blob: e39fb141973de6204f3f3f7fa9e5b98c77129126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% extends "layouts/app.twig" %}
{% import 'macros/base.twig' as m %}

{% block title %}{{ __('Role administration') }}{% endblock %}

{% block content %}

<div class="container">
    <h1>{{ __('Role administration') }}</h1>
    <div class="form-group">
        <a href="" class="btn btn-default">
            {{ m.glyphicon('plus') }} {{ __('New role') }}
        </a>
    </div>
    <table class="table table-striped">
        <tr>
            <th>{{ __('Role') }}</th>
            <th></th>
        </tr>
        {% for role in roles %}
            <tr>
                <td>
                    <a href="">{{ role }}</a>
                </td>
                <td>
                    <div class="btn-group">
                        <a href="" class="btn btn-default btn-xs">{{ m.glyphicon('eye-open') }} {{ __('view') }}</a>
                        <a href="" class="btn btn-default btn-xs">{{ m.glyphicon('edit') }} {{ __('edit') }}</a>
                        <a href="" class="btn btn-default btn-xs" data-toggle="modal" data-target="#delete-popup-{{ role }}">
                            {{ m.glyphicon('trash') }} {{ __('delete') }}
                        </a>
                    </div>

                    <div class="modal fade" id="delete-popup-{{ role }}" tabindex="-1" role="dialog" aria-labelledby="{{ role }}">
                        <div class="modal-dialog modal-sm" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title" id="myModalLabel">{{ __('Delete role') }}</h4>
                                </div>
                                <div class="modal-body">
                                    {{ __('Dou you really want to delete the role %s?', [role]) }}
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">{{ __('cancel') }}</button>
                                    <button type="button" class="btn btn-danger">{{ m.glyphicon('trash') }} {{ __('delete') }}</button>
                                </div>
                            </div>
                        </div>
                    </div>

                </td>
            </tr>
        {% endfor %}
    </table>
</div>

{% endblock %}