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

{% block title %}New Team{% endblock %}

{% block main %}
<h1>Create a new Team</h1>

<ul class="main-content">
  <li class="grid_2">
    <form enctype="multipart/form-data" action="{{ formloc }}" method="post">
      {% if form.errors %}
      <p style="color: red;">
        Please correct the error{{ form.errors|pluralize }} below.
      </p>
      {% endif %}
      
      <table>
        {{ form.as_table }}
      </table>
      {% csrf_token %}
      <input class="button green" type="submit" value="Submit">
  </li>
  <li class="grid_2">
    <ul>
      <li>Team Type: A private team is invisible on the Teams Management page, except for its members. The only way to add members is for the manager to send an invitation. An open team is visible for all rowsandall.com users. In addition to the invitation mechanism, any user can request to be added to this team. The team manager will always have to approve membership.</li>
      <li>Sharing Behavior: When set to "All Members", all members of a team will see each other's workouts. This is the recommended setting.
        If the sharing behavior is set to "Coach Only", team members only see their own workouts. The coach sees all team members' workouts.</li>
      <li>These settings can be changed at any point in time through the Team Edit page</li>
    </ul>
  </li>
</ul>
  


</form>
{% endblock %}

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