{% extends "settings/base.html" %}

{% block subtitle %}Profile{% endblock %}

{% block content %}
    <form action="." method="POST" enctype="multipart/form-data" >
        {% csrf_token %}
        <fieldset>
            <legend>Details</legend>
            {% include "forms/_field.html" with field=form.name %}
            {% include "forms/_field.html" with field=form.summary %}
            {% include "forms/_field.html" with field=form.discoverable %}
        </fieldset>
        <fieldset>
            <legend>Images</legend>
            {% include "forms/_field.html" with field=form.icon %}
            {% include "forms/_field.html" with field=form.image %}
        </fieldset>
        <div class="buttons">
            <a href="{{ request.identity.urls.view }}" class="button secondary left">View Profile</a>
            <button>Save</button>
        </div>
    </form>
{% endblock %}
