<commit_before>{% extends 'BWSkeletonBundle:Frontend:layout.html.twig' %}

{% block title %}Личные данные{% endblock %}

{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <h1><i class="fa fa-user"></i> Кабинет пользователя - Личные данные</h1>
                <div>
                    <a href="{{ path('user_profile_personal') }}">Личные данные</a> | 
                    <a href="{{ path('user_profile_address') }}">Адрес</a>
                </div>
                <br>
                {{ form_start(form) }}
                    {% if form_errors(form) %}
                        <div class="alert alert-danger">
                            {{ form_errors(form) }}
                        </div>
                    {% endif %}

                    <div>
                        {{ form_label(form.surname, 'Фамилия: ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.surname, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.surname) }}
                    </div>

                    <div>
                        {{ form_label(form.name, 'Имя: ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.name, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.name) }}
                    </div>

                    <div>
                        {{ form_label(form.patronymic, 'Отчество: ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.patronymic, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.patronymic) }}
                    </div>
                
                    <div>
                        {{ form_label(form.phone, 'Телефон: ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.phone, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.phone) }}
                    </div>
                    <div>
                        {{ form_widget(form.save, {'attr': {'class': 'btn btn-primary icon-save before-padding'}, 'label': 'Сохранить'}) }}
                    </div>
                    <br>
                    <div>
                        {{ form_label(form.user.password, 'Изменение пароля (не обязательно): ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.user.password, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.user.password) }}
                    </div>
                    <div>
                        {{ form_widget(form.user.changePassword, {'attr': {'class': 'btn btn-primary icon-save before-padding'}, 'label': 'Изменить пароль'}) }}
                    </div>
                {{ form_end(form) }}
            </div>
        </div>
    </div>
{% endblock %}<commit_msg>improve profile password change fields makeup<commit_after>{% extends 'BWSkeletonBundle:Frontend:layout.html.twig' %}

{% block title %}Личные данные{% endblock %}

{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <h1><i class="fa fa-user"></i> Кабинет пользователя - Личные данные</h1>
                <div>
                    <a href="{{ path('user_profile_personal') }}">Личные данные</a> | 
                    <a href="{{ path('user_profile_address') }}">Адрес</a>
                </div>
                <br>
                {{ form_start(form) }}
                    {% if form_errors(form) %}
                        <div class="alert alert-danger">
                            {{ form_errors(form) }}
                        </div>
                    {% endif %}

                    <div>
                        {{ form_label(form.surname, 'Фамилия: ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.surname, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.surname) }}
                    </div>

                    <div>
                        {{ form_label(form.name, 'Имя: ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.name, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.name) }}
                    </div>

                    <div>
                        {{ form_label(form.patronymic, 'Отчество: ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.patronymic, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.patronymic) }}
                    </div>
                
                    <div>
                        {{ form_label(form.phone, 'Телефон: ', {'label_attr': {'class': ''} }) }}
                        {{ form_widget(form.phone, {'attr': {'class': 'form-control '} }) }}
                        {{ form_errors(form.phone) }}
                    </div>
                    <div>
                        {{ form_widget(form.save, {'attr': {'class': 'btn btn-primary icon-save before-padding'}, 'label': 'Сохранить'}) }}
                    </div>
                    <br>
                    <div>
                        <div>
                            {{ form_label(form.user.password, 'Изменение пароля (не обязательно): ', {'label_attr': {'class': ''} }) }}
                        </div>
                        <div>
                            {{ form_label(form.user.password.first, 'Новый пароль: ', {'label_attr': {'class': ''} }) }}
                            {{ form_widget(form.user.password.first, {'attr': {'class': 'form-control '} }) }}
                        </div>
                        <div>
                            {{ form_label(form.user.password.second, 'Подтверждение пароля: ', {'label_attr': {'class': ''} }) }}
                            {{ form_widget(form.user.password.second, {'attr': {'class': 'form-control '} }) }}
                        </div>
                        {% if form_errors(form.user.password.first) or form_errors(form.user.password.second) %}
                            <div class="alert alert-danger">
                                {{ form_errors(form.user.password.first) }}
                                {{ form_errors(form.user.password.second) }}
                            </div>
                        {% endif %}
                    </div>
                    <div>
                        {{ form_widget(form.user.changePassword, {'attr': {'class': 'btn btn-primary icon-save before-padding'}, 'label': 'Изменить пароль'}) }}
                    </div>
                {{ form_end(form) }}
            </div>
        </div>
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.1689807976366322, 'fraction_numerical': 0.0011816838995568684, 'mean_word_length': 1.22, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4497997', 'n_tokens_mistral': 1932, 'n_tokens_neox': 1807, 'n_words': 297}