{% extends 'base.jinja' %} {% block title %}Formula 10 - Season{% endblock title %} {% set active_page = "/season/" ~ model.active_user_name_sanitized_or_everyone() %} {% block navbar_center %} {{ active_user_dropdown(page='season') }} {% endblock navbar_center %} {% block body %}
Note
Picks that match the current standings are marked in green, except for the hot-take and overtake picks, as those are not evaluated automatically.
{% for user in model.all_users_or_active_user() %}
{# Link should only be visible if all users are visible #} {% if model.active_user is not none %} {{ user.name }} {% else %} {{ user.name }} {% endif %}
{% set user_guess = model.season_guesses_by(user_name=user.name) %} {% set season_guess_open = model.season_guess_open() %} {% if season_guess_open == true %} {% set action_save_href = "/season-guess/" ~ user.name %} {% else %} {% set action_save_href = "" %} {% endif %}
{# Hot Take #}
{# P2 Constructor #}
{{ team_select_with_preselect(team_match=user_guess.p2_wcc, name="p2select", label="P2 in WCC:", include_none=false, disabled=not season_guess_open, border=("border-success" if points.p2_constructor_correct(user.name) else "border-danger")) }}
{# Most Overtakes + DNFs #}
{{ driver_select_with_preselect(driver_match=user_guess.most_overtakes, name="overtakeselect", label="Most overtakes:", include_none=false, include_inactive=true, disabled=not season_guess_open, border=("border-success" if points.overtakes_correct(user.name) else "border-danger")) }} {{ driver_select_with_preselect(driver_match=user_guess.most_dnfs, name="dnfselect", label="Most DNFs:", include_none=false, include_inactive=true, disabled=not season_guess_open, border=("border-success" if points.dnfs_correct(user.name) else "border-danger")) }}
{# Most Gained + Lost #}
{{ driver_select_with_preselect(driver_match=user_guess.most_wdc_gained, name="gainedselect", label="Most WDC pl. gained:", include_none=false, include_inactive=true, drivers=model.active_drivers_for_wdc_gained(), disabled=not season_guess_open, border=("border-success" if points.most_gained_correct(user.name) else "border-danger")) }} {{ driver_select_with_preselect(driver_match=user_guess.most_wdc_lost, name="lostselect", label="Most WDC pl. lost:", include_none=false, include_inactive=true, disabled=not season_guess_open, border=("border-success" if points.most_lost_correct(user.name) else "border-danger")) }}
{# Team-internal Winners #}
Teammate battle winners:
{% for team in model.all_teams(include_none=false) %} {# HACK: Choosing 0 and 1 will chose the drivers with the lowest IDs (although there could be others). #} {# This means the drivers chosen from at the start of the season will be visible. #} {% set driver_a = model.drivers_by(team_name=team.name, include_inactive=True)[0] %} {% set driver_b = model.drivers_by(team_name=team.name, include_inactive=True)[1] %}
{% endfor %}
{# Drivers with Podiums #}
Drivers with podium(s):
{% for team in model.all_teams(include_none=false) %} {# HACK: Choosing 0 and 1 will chose the drivers with the lowest IDs (although there could be others). #} {# This means the drivers chosen from at the start of the season will be visible. #} {% set driver_a = model.drivers_by(team_name=team.name, include_inactive=True)[0] %} {% set driver_b = model.drivers_by(team_name=team.name, include_inactive=True)[1] %}
{% endfor %}
{% endfor %}
{% endblock body %}