{% extends "projects/project_menu.html" %}
{% load i18n %}
{% load pagination_tags %}
{% load txcommontags %}
{% load permissions %}
{% load txpermissions %}

{% block title %}{{ block.super }} | {{ project.name }}{% endblock %}

{% block breadcrumb %}{{ block.super }} &raquo; <a href="{{ project.get_absolute_url }}">{{ project.name }}</a> &raquo; {% trans "Add Team" %}{% endblock %}

{% block content_main %}
{% with team.language as language %}
{% get_permission "project_perm.submit_file" for request.user and project as "can_submit_file" %}
{% get_permission "project_perm.coordinate_team" for request.user and project,language as "is_coordinator" %}

<div class="obj_bigdetails">

<h2 class="name">{% blocktrans with project.name as project_name %}{{ project_name }} Translation Teams{% endblocktrans %}</h2>

<div class="project_create generic_form">

{% if perms.projects.add_team or is_coordinator %}

<form id="add_update_team" method="post" enctype="multipart/form-data" action="" class="microform submit_form">
 <fieldset style="margin-top: 1em;">
  <legend>{% trans "Translation team details" %}</legend>
    <div class="notice">
    {% blocktrans %}Please note that notification will not be sent when coordinators or members are added or removed on this page.{% endblocktrans %}

    </div>
    
    <input type="hidden" name="next" value="{{ next }}"/>
    <table>
        <tbody>
        {% form_as_table_rows project_team_form %}
        </tbody>
    </table>
    <p class="submit">
        <input class="i16 submit" type="submit" value="{% trans "Save team" %}"/>
    </p>
 </fieldset>
</form>
{% endif %}

</div>
</div>
{% endwith %}
{% endblock %}

