{% extends "layouts/base.html" %} {% block title %}{{ _('Tryouts') }} - UdeS team manager{% endblock %} {% block page_title %}{{ _('Tryouts') }}{% endblock %} {% block breadcrumb %}Home / Tryouts{% endblock %} {% block header_actions %} {% if current_user.can_manage_tryouts() %} {{ _('New Tryout') }} {% endif %} {% endblock %} {% block content %}
{% for tryout in tryouts %}

{{ tryout.title }}

{{ tryout.status | replace('_', ' ') | title }}
Game {{ tryout.game }}
Date {% if tryout.end_date and tryout.end_date != tryout.date %} {{ tryout.date.strftime('%b %d') }} - {{ tryout.end_date.strftime('%b %d, %Y') }} {% else %} {{ tryout.date.strftime('%b %d, %Y') }} {% endif %}
Location {{ tryout.location or 'TBD' }}
Players {{ tryout.registrations.count() }}
{% if current_user.can_evaluate() %}
Evaluations {{ tryout.evaluations.count() }}
{% endif %} {% if tryout.target_org_team %}
Target Team {{ tryout.target_org_team.name }}
{% endif %} {% if tryout.max_players %}
Max Players {{ tryout.max_players }}
{% endif %}
{% if tryout.description %}

{{ tryout.description | truncate(120) }}

{% endif %}
{% else %}

{{ _('No tryouts found') }}

{% if current_user.can_manage_tryouts() %}

{{ _('Get started by creating a new tryout.') }}

Create Tryout {% endif %}
{% endfor %}
{% endblock %}