{% extends "generic/object.html" %} {% load render_table from django_tables2 %} {% load plugins %} {% block content %}
Contract
Name {{ object.name }}
Name Internal {{ object.name_internal }}
Type {{ object.get_type_display }}
Contract Type {{ object.contract_type }}
Contractor {{ object.contractor }}
Price {{ object.price|to_czech_crown }}
Signed {{ object.signed }}
Accepted {{ object.accepted }}
Invoicing Start {{ object.invoicing_start }}
Invoicing End {{ object.invoicing_end }}
Parent (Master contract) {% if object.parent %} {{ object.parent }} {% else %} {{ ''|placeholder }} {% endif %}
{% include "inc/panels/custom_fields.html" %} {% plugin_left_page object %}
{% include "inc/panels/tags.html" %} {% include "inc/panels/comments.html" %} {% plugin_right_page object %}
{% if object.contract_type == "contract" %}
Subcontracts
{% comment %} TODO: COnfigure Table and quicsearch {% include 'inc/table_controls_htmx.html' with table_modal="ContractTable_config" %} {% endcomment %} {% render_table subcontracts_table %} {% include "inc/paginator.html" with paginator=subcontracts_table.paginator page=subcontracts_table.page %}
{% endif %}
Invoices
{% comment %} TODO: COnfigure Table and quicsearch {% include 'inc/table_controls_htmx.html' with table_modal="InvoiceTable_config" %} {% endcomment %} {% render_table invoices_table %} {% include "inc/paginator.html" with paginator=invoices_table.paginator page=invoices_table.page %}
{% plugin_full_width_page object %}
{% endblock content %} {% comment %} TODO: COnfigure Table and quicsearch {% load helpers %} {% block modals %} {{ block.super }} {% table_config_form subcontracts_table %} {% table_config_form invoices_table %} {% endblock modals %} {% endcomment %}