2024-02-18 23:03:14 +00:00
|
|
|
{% extends "layout.html.twig" %}
|
2016-09-30 18:09:06 +00:00
|
|
|
|
|
|
|
{% 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">
|
2018-12-02 11:43:05 +00:00
|
|
|
{{ form_widget(edit_form.emailTwoFactor) }}
|
|
|
|
{{ form_label(edit_form.emailTwoFactor) }}
|
|
|
|
{{ form_errors(edit_form.emailTwoFactor) }}
|
2016-09-30 18:09:06 +00:00
|
|
|
</div>
|
2018-12-02 11:43:05 +00:00
|
|
|
<div class="input-field col s12">
|
|
|
|
{{ form_widget(edit_form.googleTwoFactor) }}
|
|
|
|
{{ form_label(edit_form.googleTwoFactor) }}
|
|
|
|
{{ form_errors(edit_form.googleTwoFactor) }}
|
|
|
|
</div>
|
2016-09-30 18:09:06 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
|
2016-10-07 12:56:26 +00:00
|
|
|
{{ form_widget(edit_form._token) }}
|
2016-09-30 18:09:06 +00:00
|
|
|
</form>
|
|
|
|
<p>
|
2024-02-05 21:02:50 +00:00
|
|
|
{% if is_granted('DELETE', user) %}
|
|
|
|
{{ 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) }}
|
|
|
|
{% else %}
|
|
|
|
<button disabled="disabled" type="button" class="btn waves-effect waves-light red">{{ 'user.form.delete'|trans }}</button>
|
|
|
|
{% endif %}
|
2016-09-30 18:09:06 +00:00
|
|
|
</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 %}
|