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

Affiliation {{ teamAffiliation.name }}

{% if showExternalId(teamAffiliation) %} {% endif %} {% if showFlags and teamAffiliation and teamAffiliation.country %} {% endif %} {% if teamAffiliation.internalcomments is not empty %} {% endif %}
ID {{ teamAffiliation.affilid }}
External ID {{ teamAffiliation.externalid }}
ICPC ID {% if teamAffiliation.icpcid %} {{ teamAffiliation.icpcid }} {% else %} - {% endif %}
Shortname {{ teamAffiliation.shortname }}
Logo
Country {{ teamAffiliation.country | countryFlag(true) }}
Comments {{ teamAffiliation.internalcomments }}
{%- if is_granted('ROLE_ADMIN') -%}

{{ button(path('jury_team_affiliation_edit', {'affilId': teamAffiliation.affilid}), 'Edit', 'primary', 'edit') }} {{ button(path('jury_team_affiliation_delete', {'affilId': teamAffiliation.affilid}), 'Delete', 'danger', 'trash-alt', true) }}

{% endif %}

Teams

{% if teamAffiliation.teams is empty %}

no teams

{% else %}
{% for team in teamAffiliation.teams %} {% endfor %}
ID Teamname
{{ team | entityIdBadge('t') }} {{ team.effectiveName }}
{% if scoreboard is defined %}
{% include 'partials/scoreboard_table.html.twig' with {displayRank: true, jury: true} %}
{% endif %} {% endif %} {% endblock %}