{% extends "base.html" %} {% block title %}Seasons · {{ league.name }} · myboker.org{% endblock %} {% block sidebar %}{% include "_league_sidebar.html" %}{% endblock %} {% block page_class %}page--app{% endblock %} {% block content %}
{% if can_manage %} {% set has_dated_seasons = active_seasons | selectattr('start_date') | list | length > 0 %} {% if has_dated_seasons %}

Auto-assign sessions

Assign unassigned sessions to seasons based on their date. Sessions that match zero or multiple seasons are skipped.

{% endif %}

Seasons

New season

{% endif %}{# can_manage #}

Active

Current seasons

{{ active_seasons|length }} season{{ 's' if active_seasons|length != 1 else '' }}
{% if active_seasons %}
{% for season in active_seasons %}
{% if season.start_date %} {{ season.start_date.strftime('%b %-d, %Y') }} {% endif %} {% if season.start_date and season.end_date %} {% endif %} {% if season.end_date %} {{ season.end_date.strftime('%b %-d, %Y') }} {% endif %} {% if not season.start_date and not season.end_date %} No dates set {% endif %}
{% if can_manage %}
{% endif %}
{% endfor %}
{% else %}

No active seasons. Create one above.

{% endif %}
{% if archived_seasons %}

Archived

Past seasons

{{ archived_seasons|length }}
{% for season in archived_seasons %}
{{ season.name }}
{% if season.start_date %} {{ season.start_date.strftime('%b %-d, %Y') }} {% endif %} {% if season.start_date and season.end_date %} {% endif %} {% if season.end_date %} {{ season.end_date.strftime('%b %-d, %Y') }} {% endif %} {% if not season.start_date and not season.end_date %} No dates set {% endif %}
{% if can_manage %}
{% endif %}
{% endfor %}
{% endif %}
{% if can_manage %} {% endif %}{# can_manage #} {% endblock %}