{% extends "base.html" %}
{% block title %}
    Edit profile
{% endblock %}

{% block content %}
    <div class="col-md-offset-3 col-md-6">
        <h1>Edit Profile</h1>
            <form action="" method="post">
                {{ form.hidden_tag() }}
                <p>
                    {{ form.username.label(class="control-label") }}<br>
                    {{ form.username(size=32, class="form-control") }}<br>
                    {% for error in form.username.errors %}
                    <span style="color: red;">[{{ error }}]</span>
                    {% endfor %}
                </p>
                <p>
                    {{ form.about_me.label(class="control-label") }}<br>
                    {{ form.about_me(cols=50, rows=4, class="form-control") }}<br>
                    {% for error in form.about_me.errors %}
                    <span style="color: red;">[{{ error }}]</span>
                    {% endfor %}
                </p>
                <p>{{ form.submit(class="btn btn-success") }}</p>
            </form>
    </div>
{% endblock %}