{% extends "jury/base.html.twig" %} {% import "jury/jury_macros.twig" as macros %} {% block title %}Team {{ team.teamid }} - {{ parent() }}{% endblock %} {% block extrahead %} {{ parent() }} {{ macros.table_extrahead() }} {% endblock %} {% block content %}

Team {{ team.effectiveName }}

{% if showExternalId(team) %} {% endif %} {% if team.penalty %} {% endif %} {% if team.location %} {% endif %}
ID {{ team.teamid }}
External ID {{ team.externalid }}
ICPC ID {% if team.icpcid %} {{ team.icpcid }} {% else %} - {% endif %}
Label {% if team.label | length %} {{ team.label }} {% else %} - {% endif %}
Name {{ team.name }}
Display name {% if team.displayName %} {{ team.displayName }} {% else %} - {% endif %}
First login {% if team.users is not empty and team.users.first.firstLogin %} {{ team.users.first.firstLogin | printtime('D d M Y H:i:s T') }} {% else %} - {% endif %}
IP {% if team.users is not empty and team.users.first.lastIpAddress %} {{ team.users.first.lastIpAddress | printHost(true) }} {% else %} - {% endif %}
Penalty time {{ team.penalty }}
Location {{ team.location }}
User {% for user in team.users %} {{ user.username }} {% else %} {%- if is_granted('ROLE_ADMIN') -%} add user {% endif %} {% endfor %}
{% if showAffiliations and team.affiliation %} {% endif %} {% if showFlags and team.affiliation and team.affiliation.country %} {% endif %} {% if team.contests|length > 0 %} {% endif %} {% if team.internalcomments is not empty %} {% endif %} {% if team.publicdescription is not empty %} {% endif %}
Category {% if team.category %} {{ team.category.name }} {% else %} - {% endif %}
Affiliation {% set affiliationId = team.affiliation.affilid %} {% if showExternalId(team.affiliation) %} {% set affiliationId = team.affiliation.externalid %} {% endif %} {% set affiliationLogo = affiliationId | assetPath('affilation') %} {% if affiliationLogo %} {% endif %} {{ team.affiliation.name }}
Country {{ team.affiliation.country | countryFlag(true) }}
Contests {% for ucontest in team.contests %} {{ ucontest.shortname }} {% endfor %}
Internal comments (Jury only) {{ team.internalcomments | nl2br }}
Description (Public) {{ team.publicdescription | nl2br }}
{% set teamId = team.teamid %} {% if showExternalId(team) %} {% set teamId = team.externalid %} {% endif %} {% set teamImage = teamId | assetPath('team') %} {% if teamImage %}
Picture of team {{ team.name }}
{% endif %}
{%- if is_granted('ROLE_ADMIN') -%} {{ button(path('jury_team_edit', {'teamId': team.teamid}), 'Edit', 'primary', 'edit') }} {{ button(path('jury_team_delete', {'teamId': team.teamid}), 'Delete', 'danger', 'trash-alt', true) }} {% endif %} {{ button(path('jury_clarification_new', {'teamto': team.teamid}), 'Send message', 'secondary', 'envelope') }} {% include 'jury/partials/rejudge_form.html.twig' with {table: 'team', id: team.teamid, buttonClass: 'btn-secondary'} %}
{% include 'jury/partials/team_score_and_submissions.html.twig' %}
{% endblock %}