{% 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
Subcontract List {% if perms.inventory_monitor.add_contract %} Add Subcontract {% endif %}
{% htmx_table 'plugins:inventory_monitor:contract_list' parent_id=object.pk %}
{% endif %}
Invoices
Invoices List {% if perms.inventory_monitor.add_invoice %} Add Invoices {% endif %}
{% htmx_table 'plugins:inventory_monitor:invoice_list' contract_id=object.pk %}
{% plugin_full_width_page object %}
{% endblock content %}