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

{{ contract.name }}

{% if contract.is_public %} Smlouva {% else %}
{% include "contracts/includes/private_info_icon.html" %} Neveřejná smlouva
{% endif %}

{% if contract.id_number %} {% endif %} {% if contract.primary_contract %} {% endif %} {% with contract.subcontracts.all as subcontracts %} {% if subcontracts %} {% endif %} {% endwith %} {% if contract.cost_amount %} {% endif %} {% if user.can_view_confidential %} {% if not contract.is_public and contract.publishing_rejection_comment %} {% endif %} {% endif %}
Základní informace
Identifikační číslo {{ contract.id_number }}
Typy
    {% for type in contract.types.all %}
  • {% include "contracts/includes/tag.html" with url=type.url icon="ico--folder" content=type.name %}
  • {% endfor %}
Nadřazená smlouva {% include "contracts/includes/tag.html" with url=contract.primary_contract_url icon="ico--file-blank" content=contract.primary_contract.name %}
Podřazené smlouvy
    {% for subcontract in subcontracts %}
  • {% include "contracts/includes/tag.html" with url=subcontract.url icon="ico--file-blank" content=subcontract.name %}
  • {% endfor %}
Souhrn {{ contract.summary }}
Je platná
Náklady {{ contract.cost_amount }} Kč {% if contract.cost_unit == contract.CostUnits.TOTAL %} celkem {% elif contract.cost_unit == contract.CostUnits.OTHER %} / {{ contract.cost_unit_other }} {% else %} / {{ contract.get_cost_unit_display.lower }} {% 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 %}
{% include "contracts/includes/private_info_icon.html" %} 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 public=file.is_public %}
  • {% endfor %}
{% else %} Žádné {% endif %} {% endwith %}
{% include "contracts/includes/private_info_icon.html" %} Důvod nezveřejnění
{{ contract.publishing_rejection_comment|markdownify|safe }}
Fyzický dokument
Stav {{ contract.get_paper_form_state_display }} {% if contract.paper_form_person_responsible %} (zodpovídá {{ contract.paper_form_person_responsible }}) {% endif %}
Spisovna {% if contract.filing_area %}
{% include "contracts/includes/tag.html" with url=contract.filing_area.url icon="ico--drawer" content=contract.filing_area.name %}
{% else %} Žádná {% endif %}
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í {% with contract.approvals.all as approvals %} {% if approvals|length != 0 %}
    {% for approval in approvals %}
  • {% include "contracts/includes/tag.html" with url=approval.url icon="ico--link" content=approval.name %}
  • {% endfor %}
{% else %} Žádné {% endif %} {% endwith %}
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 %}
{% if user.can_view_confidential %} {% with contract.issues.all as issues %} {% if issues %} {% endif %} {% endwith %} {% if ontract.notes %} {% endif %} {% 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=issue.url icon="ico--warning" content=issue.name %}
  • {% endfor %}
{% include "contracts/includes/private_info_icon.html" %} Interní poznámky
{{ contract.notes|markdownify|safe }}
Čas vytvoření {{ contract.created_on }}
Čas poslední aktualizace {{ contract.updated_on }}
Nahráno uživatelem {{ contract.created_by }}

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 %}