{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}

{% block title %}{% trans "Edit Member" %}{% endblock %}

{% block content %}
<div id="workouts" class="grid_6 alpha">
	<div class="grid_2 suffix_4 alpha">
		<p>
		<a class="button small red" href="/cvkbrno/members/{{ id }}/deleteconfirm">
			{% trans "Delete" %}</a>
		</p>
	</div>

    {% if form.errors %}
        <p style="color: red;">
            Please correct the error{{ form.errors|pluralize }} below.
        </p>
    {% endif %}

	<h1>{% trans "Edit Member" %}</h1>

	<p>{% trans "username" %}: {{ username }}</p>

	<form enctype="multipart/form-data" action="" method="post">
        <table width=100%>
	{{ form1.as_table }}
	{{ form2.as_table }}
        </table>
        {% csrf_token %}
   <div id="formbutton" class="grid_1 prefix_4 suffix_1">
        <input type="submit" value="{% trans 'Save' %}">
   </div>
    </form>
</div>

{% endblock %}