{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}

{% block title %}Leave Team {% endblock %}

{% block main %}
<h1>Confirm Leaving the team {{ team.name }}</h1>

<ul class="main-content">
  <li class="grid_2">
    {% if form.errors %}
    <p style="color: red;">
      Please correct the error{{ form.errors|pluralize }} below.
    </p>
    {% endif %}
    
    <p>This will remove you and all your workouts from the team. If this
      is a closed team, you can only return when the team manager
      reinvites you.
      If this is an open team, you can return by applying for team membership.
    </p>
    
    
    <p>
      <a class="button green small" href="/rowers/team/{{ team.id }}">Cancel</a>
    </p>
    <p>
      <a class="button red small" href="/rowers/team/{{ team.id }}/leave">Leave</a>
    </p>
  </li>
</ul>




{% endblock %}

{% block sidebar %}
{% include 'menu_teams.html' %}
{% endblock %}
