{% extends 'hordak/base.html' %}

{% block page_name %}Edit account{% endblock %}
{% block page_description %}Create a new account{% endblock %}

{% block content %}
    <form action="" method="post">
        {% csrf_token %}

        <div class="form-group">
            <label class="control-label">Type</label>
            <div class="form-control-static">{{ account.get__type_display }}</div>
        </div>

        <div class="form-group">
            <label class="control-label">Currencies</label>
            <div class="form-control-static">{{ account.currencies|join:', ' }}</div>
        </div>

        {{ form }}

        <p>
            <input type="submit" class="btn btn-primary btn-lg pull-right" value="Save changes">
            <a href="{% url 'hordak:accounts_list' %}">Cancel</a>
        </p>
    </form>

{% endblock %}
