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

{% block title %}{% trans "Members Admin" %}{% endblock %}

{% block content %}
<div id="workouts" class="grid_6 alpha">

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

	<h1>{% trans "Members Admin" %}</h1>


	<div id="addboat" class="grid_2 suffix_4 alpha">
	<p>
	<a class="button green small" href="/cvkbrno/members/add">{% trans "Add Member" %}</a>
	</p>
	</div>
	
	{% if themembers %}	

        <table class="listtable" width=100%>
	<thead>
		<tr>	
		<th>{% trans "Last Name" %}</th>
		<th>{% trans "First Name" %}</th>
		<th>{% trans "Contributions" %}</th>
		<th>{% trans "Edit" %}</th>
		</tr>
	</thead>
	<tbody>
		{% for member in themembers %}
		<tr>
		<td>{{ member.user.last_name }}</td>
		<td>{{ member.user.first_name }}</td>
		<td>{{ member.contributions }}</td>
		<td><a href="/cvkbrno/members/{{ member.id }}/edit">E</a></td>
		</tr>
		{% endfor %}
	<tbody>
        </table>

	{% endif %}
        {% csrf_token %}
</div>

{% endblock %}