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

{% block title %}{% trans "Boat Category 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 "Boat Category Admin" %}</h1>


	<div id="addcategory" class="grid_2 suffix_4 alpha">
	<p>
	<a class="button small green" href="/cvkbrno/categories/add">{% trans "Add Boat Category" %}</a>
	</p>
	</div>

        <table class="listtable" width=100%>
	<thead>
		<tr>	
		<th>{% trans "Name" %}</th>
		<th>{% trans "Edit" %}</th>
		</tr>
	</thead>
	<tbody>
		{% for category in thecats %}
		<tr>
		<td>{{ category.name }}</td>
		<td><a href="/cvkbrno/categories/{{ category.id }}/edit">E</a></td>
		</tr>
		{% endfor %}
	<tbody>
        </table>
        {% csrf_token %}
</div>

{% endblock %}