{% extends "library/base/generic.html" %}

{% block title %}Edit {{ person.get_full_name }}{% endblock title %}
{% block content_title %}Edition of {{ person.get_full_name }}{% endblock content_title %}

{% block content %}
    {% if person.picture %}
        <img class="person-image small" src="{{ person.picture.url }}" alt="{{ person.get_full_name }}">
    {% endif %}
    <form name="person-form" method="post" action="" enctype="multipart/form-data">
        {% csrf_token %}
        <table>
            <tbody>
            {{ form.as_table }}
            </tbody>
        </table>
        {{ form.first_name }}
        <input type="submit" class="btn btn-default btn-lg" value="Update person" name="submit-person">
    </form>
{% endblock %}
