aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig
blob: 5292ba78de95e4975718dba184e5b4e4a49144cf (plain) (blame)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{% 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">
                <div class="row">
                    <div class="input-field col s12">
                        <h4>{{ 'user.edit_user'|trans }}</h4>

                        <div id="set6" class="col s12">
                            {{ form_start(edit_form) }}
                                {{ form_errors(edit_form) }}

                                <div class="row">
                                    <div class="input-field col s12">
                                        {{ form_label(edit_form.name) }}
                                        {{ form_errors(edit_form.name) }}
                                        {{ form_widget(edit_form.name) }}
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="input-field col s12">
                                        {{ form_label(edit_form.username) }}
                                        {{ form_errors(edit_form.username) }}
                                        {{ form_widget(edit_form.username) }}
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="input-field col s12">
                                        {{ form_label(edit_form.email) }}
                                        {{ form_errors(edit_form.email) }}
                                        {{ form_widget(edit_form.email) }}
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="input-field col s12">
                                        {{ form_widget(edit_form.enabled) }}
                                        {{ form_label(edit_form.enabled) }}
                                        {{ form_errors(edit_form.enabled) }}
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="input-field col s12">
                                        {{ form_widget(edit_form.locked) }}
                                        {{ form_label(edit_form.locked) }}
                                        {{ form_errors(edit_form.locked) }}
                                    </div>
                                </div>

                                {% if twofactor_auth %}
                                <div class="row">
                                    <div class="input-field col s12">
                                        {{ form_widget(edit_form.twoFactorAuthentication) }}
                                        {{ form_label(edit_form.twoFactorAuthentication) }}
                                        {{ form_errors(edit_form.twoFactorAuthentication) }}
                                    </div>
                                </div>
                                {% endif %}

                                <br/>

                                {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
                                {{ form_rest(edit_form) }}
                            </form>
                            <p>
                                {{ form_start(delete_form) }}
                                    <button onclick="return confirm('{{ 'user.form.delete_confirm'|trans|escape('js') }}')" type="submit" class="btn waves-effect waves-light red">{{ 'user.form.delete'|trans }}</button>
                                {{ form_end(delete_form) }}
                            </p>
                            <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('user_index') }}">{{ 'user.form.back_to_list'|trans }}</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

{% endblock %}