{% extends "shared/includes/base.html" %} {% load subtract markdownify %} {% block content %}

{{ contract.name }}

{% if contract.id_number %} {% endif %} {% if contract.primary_contract %} {% endif %} {% if user.can_view_confidential %} {% endif %} {% if contract.cost_amount %} {% endif %} {% if user.can_view_confidential %} {% endif %}
Základní informace
Identifikační číslo {{ contract.id_number }}
Typy
    {% for type in contract.types.all %}
  • {% include "contracts/includes/tag.html" with url="#TODO" icon="ico--folder" content=type.name %}
  • {% endfor %}
Primární smlouva {% include "contracts/includes/tag.html" with url=contract.primary_contract_url icon="ico--file-blank" content=contract.primary_contract.name %}
Souhrn {{ contract.summary }}
Je veřejná
Je platná
Náklady {{ contract.cost_amount }} Kč {% if contract.cost_unit != contract.CostUnits.TOTAL %} / {{ contract.get_cost_unit_display.lower }} {% else %} celkem {% endif %}
{% if user.can_view_confidential %}Veřejné s{% else %}S{% endif %}oubory {% with contract.get_public_files as files %} {% if files|length != 0 %}
    {% for file in files %}
  • {% include "contracts/includes/tag.html" with url=file.protected_url icon="ico--attachment" content=file.name %}
  • {% endfor %}
{% else %} Žádné {% endif %} {% endwith %}
Neveřejné soubory
{% with contract.get_private_files as files %} {% if files|length != 0 %}
    {% for file in files %}
  • {% include "contracts/includes/tag.html" with url=file.protected_url icon="ico--attachment" content=file.name %}
  • {% endfor %}
{% else %} Žádné {% endif %} {% endwith %}
Fyzický dokument
Stav {{ contract.get_paper_form_state_display }}
Spisovna
{% include "contracts/includes/tag.html" with url="#TODO" icon="ico--drawer" content=contract.filing_area.name %}
Data
Začátek účinnosti {{ contract.valid_start_date }}
Konec účinnosti {% if contract.valid_end_date %} {{ contract.valid_end_date }} {% else %} Neurčitý {% endif %}
Odkazy
Výběrové řízení {% if contract.tender_url %} {{ contract.tender_url }} {% else %} Není zadáno {% endif %}
Schválení {% if contract.agreement_url %} {{ contract.agreement_url }} {% else %} Není zadáno {% endif %}
Záměry {% with contract.intents.all as intents %} {% if intents|length != 0 %}
    {% for intent in intents %}
  • {% include "contracts/includes/tag.html" with url=intent.url icon="ico--link" content=intent.name %}
  • {% endfor %}
{% else %} Žádné {% endif %} {% endwith %}
{% with contract.issues.all as issues %} {% if issues|length != 0 %} {% if user.can_view_confidential and contract.notes %} {% endif %}
Doplňující informace
{% if not user.can_view_confidential %}Poznámky{% else %}Problémy{% endif %}
    {% for issue in issues %}
  • {% include "contracts/includes/tag.html" with url="#TODO" icon="ico--warning" content=issue.name %}
  • {% endfor %}
Interní poznámky

{{ contract.notes|markdownify|safe }}

{% endif %} {% endwith %}

Podpisy

{% if contract.all_parties_sign_date %}

Datum podpisu všech smluvních stran: {{ contract.all_parties_sign_date }}

{% endif %}

Podpisy naší smluvní strany

{% with contract.contractee_signatures.all as signatures %} {% if signatures|length != 0 %} {% else %}
Žádné podpisy.
{% endif %} {% endwith %}

Podpisy otatních smluvních stran

{% with contract.signee_signatures.all as signatures %} {% if signatures|length != 0 %} {% else %}
Žádné podpisy.
{% endif %} {% endwith %} {% endblock %}