{% extends template ~ '.html.twig' %}

{% block title %}{{ title }}{% endblock %}

{% block body %}

	<div class="row">
    	<div class="col-12" id="setting" data-controller="setting">
    		<div class="block-green p-4 mt-3">
	    		<div class="form-group">
	    			<label for="fullName">Пользователь</label>
	    			<input type="text" value="{{ app.user.fullName }}" disabled="true" id="fullName" class="form-control">
	    		</div>
	    		<div class="form-group">
	    			<label for="email">Email</label>
	    			<input type="text" value="{{ app.user.email }}" disabled="true" id="email" class="form-control">
	    		</div>
	    		<div class="form-group">
	    			<label for="phone">Телефон</label>
	    			<input type="text" value="{{ app.user.phone }}" disabled="true" id="phone" class="form-control">
	    		</div>

	    		{{ form_start(form) }}
				    {{ form_errors(form) }}
				    {{ form_row(form._token) }}

				    <div class="form-group">
				        {{ form_label(form.plainPassword, 'Пароль') }}
				        {{ form_widget(form.plainPassword, {'attr': {'class': 'form-control'}}) }}

				        <div class="form-error">
				            {{ form_errors(form.plainPassword) }}
				        </div>
				    </div>
				    <div id="msg"></div>
				    <button type="button" class="btn btn-outline-secondary" data-action="setting#submit">Сохранить</button>
				{{ form_end(form) }}
    		</div>
		</div>
	</div>
    
{% endblock %}
