{% extends "base.html" %}
{% import '_macros.html' as macros %}

{% block title %}{{ _("Profile") }} | {{ super() }}{% endblock %}

{% block content %}

<h3>{{ _("Profile") }}</h3>

<form role="form" method="post" class="form-horizontal"
      action="{{ url_for('profile') }}">
    {{ user_profile_form.hidden_tag() }}
    <div class="form-group">
        <label class="col-sm-2 control-label">{{ _("Email") }}</label>
        <div class="col-sm-6">
            <p class="form-control-static">{{ current_user.email }}</p>
        </div>
    </div>
    {{ macros.render_field_horizontal(user_profile_form.name) }}
    {{ macros.render_field_horizontal(user_profile_form.locale, class="form-control") }}
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary">{{ _("Update") }}</button>
        </div>
    </div>
</form>

{% endblock %}
