{% extends "base.twig" %} {% import "macros/profileelements.twig" as profile %} {% import "macros/formelements.twig" as formelements %} {% import "macros/messagebox.twig" as msgbox %} {% block page_title %} {{ i18n.getMessage("stadium_navlabel") }} {% endblock %} {% block page_content %} {# show current stadium details #} {% if stadium is defined and stadium|length > 0 %} {{ profile.infofield(i18n.getMessage("entity_stadium_name"), stadium.name) }} {% set capacity = stadium.places_stands + stadium.places_seats + stadium.places_stands_grand + stadium.places_seats_grand + stadium.places_vip %} {{ profile.infofield(i18n.getMessage("stadium_capacity"), capacity|number_format(0, ',', ' ')) }}

Your browser does not support this feature.

{{ i18n.getMessage("stadium_maintenance_title") }}

{% for upgradetype in ['pitch', 'videowall', 'seatsquality', 'vipquality'] %} {% endfor %}
{{ i18n.getMessage("entity_stadium_level_" ~ upgradetype) }} {% for level in 1..5 %} {% endfor %} {% if stadium['level_' ~ upgradetype] < 5 %} {{ i18n.getMessage("stadium_maintenance_upgradecost_label") }}
{{ upgradeCosts[upgradetype]|number_format(0, ',', ' ') }} {{ env.getConfig("game_currency") }} {% else %} - {% endif %}
{% if stadium['level_' ~ upgradetype] < 5 %} {{ i18n.getMessage("stadium_upgrade_button") }} {% endif %}
{% if construction != NULL %}

{{ i18n.getMessage("entity_stadiumconstruction") }}

{{ i18n.getMessage("stadium_construction_ongoing") }}

{{ profile.infofield(i18n.getMessage("entity_stadiumconstruction_builder_id"), construction.builder_name) }} {{ profile.infofield(i18n.getMessage("entity_stadiumconstruction_started"), env.getFormattedDatetime(construction.started)) }} {{ profile.infofield(i18n.getMessage("entity_stadiumconstruction_deadline"), env.getFormattedDatetime(construction.deadline)) }} {{ profile.infofield(i18n.getMessage("entity_stadiumconstruction_p_steh"), construction.p_steh) }} {{ profile.infofield(i18n.getMessage("entity_stadiumconstruction_p_sitz"), construction.p_sitz) }} {{ profile.infofield(i18n.getMessage("entity_stadiumconstruction_p_haupt_steh"), construction.p_haupt_steh) }} {{ profile.infofield(i18n.getMessage("entity_stadiumconstruction_p_haupt_sitz"), construction.p_haupt_sitz) }} {{ profile.infofield(i18n.getMessage("entity_stadiumconstruction_p_vip"), construction.p_vip) }}
{% if construction.deadline > env.getNowAsTimestamp() %} {{ msgbox.box("", i18n.getMessage("stadium_construction_checkstatuslater"), "info") }} {% else %}

{{ i18n.getMessage("stadium_construction_verifystatus") }}

{% endif %}
{% else %} {# extend stadium #} {% set maxSide = env.getConfig("stadium_max_side") - stadium.places_seats - stadium.places_stands %} {% set maxGrand = env.getConfig("stadium_max_grand") - stadium.places_seats_grand - stadium.places_stands_grand %} {% set maxVip = env.getConfig("stadium_max_vip") - stadium.places_vip %} {% if maxSide > 0 or maxGrand > 0 or maxVip > 0 %}
{{ i18n.getMessage('stadium_extend_title') }}

{{ i18n.getMessage('stadium_extend_limitation_intro') }}:

  • {{ i18n.getMessage('stadium_extend_limitation_side') }}: {{ maxSide|number_format(0, ',', ' ') }}
  • {{ i18n.getMessage('stadium_extend_limitation_grand') }}: {{ maxGrand|number_format(0, ',', ' ') }}
  • {{ i18n.getMessage('stadium_extend_limitation_vip') }}: {{ maxVip|number_format(0, ',', ' ') }}

{{ i18n.getMessage('stadium_extend_limitation_instruction') }}

{% if maxSide > 0 %} {{ formelements.textfield('side_standing', i18n.getMessage('entity_stadium_p_steh'), env.getRequestParameter("side_standing"), false, validationMsg, "number", null) }} {{ formelements.textfield('side_seats', i18n.getMessage('entity_stadium_p_sitz'), env.getRequestParameter("side_seats"), false, validationMsg, "number", null) }} {% endif %} {% if maxGrand > 0 %} {{ formelements.textfield('grand_standing', i18n.getMessage('entity_stadium_p_haupt_steh'), env.getRequestParameter("grand_standing"), false, validationMsg, "number", null) }} {{ formelements.textfield('grand_seats', i18n.getMessage('entity_stadium_p_haupt_sitz'), env.getRequestParameter("grand_seats"), false, validationMsg, "number", null) }} {% endif %} {% if maxVip > 0 %} {{ formelements.textfield('vip', i18n.getMessage('entity_stadium_p_vip'), env.getRequestParameter("vip"), false, validationMsg, "number", null) }} {% endif %}
{{ i18n.getMessage('button_cancel') }}
{% else %}

{{ i18n.getMessage("stadium_extend_impossible") }}

{% endif %} {% endif %} {% else %}

{{ i18n.getMessage("stadium_nostadium") }}

{% endif %} {% endblock %}