{% 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 }}
| ID |
{{ team.teamid }} |
{% if showExternalId(team) %}
| External ID |
{{ team.externalid }} |
{% endif %}
| 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 %}
|
{% if team.penalty %}
| Penalty time |
{{ team.penalty }} |
{% endif %}
{% if team.location %}
| Location |
{{ team.location }} |
{% endif %}
| User |
{% for user in team.users %}
{{ user.username }}
{% else %}
{%- if is_granted('ROLE_ADMIN') -%}
add user
{% endif %}
{% endfor %}
|
| Category |
{% if team.category %}
{{ team.category.name }}
{% else %}
-
{% endif %}
|
{% if showAffiliations and team.affiliation %}
| 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 }}
|
{% endif %}
{% if showFlags and team.affiliation and team.affiliation.country %}
| Country |
{{ team.affiliation.country | countryFlag(true) }}
|
{% endif %}
{% if team.contests|length > 0 %}
| Contests |
{% for ucontest in team.contests %}
{{ ucontest.shortname }}
{% endfor %}
|
{% endif %}
{% if team.internalcomments is not empty %}
| Internal comments (Jury only) |
{{ team.internalcomments | nl2br }}
|
{% endif %}
{% if team.publicdescription is not empty %}
| Description (Public) |
{{ team.publicdescription | nl2br }} |
{% endif %}
{% set teamId = team.teamid %}
{% if showExternalId(team) %}
{% set teamId = team.externalid %}
{% endif %}
{% set teamImage = teamId | assetPath('team') %}
{% if teamImage %}
{% 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 %}