{% extends 'base.html' %} {% load i18n l10n static fontawesome_5 humanize %} {% block head %} {% comment %} dal documentation (django-autocomplete-light) states using form.media for adding needed scripts. This does not work properly with modal forms, as the scripts are not loaded properly inside the modal. Therefore the script linkages from form.media have been extracted and put inside dal/scripts.html to ensure these scripts are loaded when needed. {% endcomment %} {% include 'dal/scripts.html' %} {% endblock %} {% block body %}

{% trans 'Intervention' %}
{{obj.identifier}}

{% include 'intervention/detail/includes/controls.html' %}

{% trans 'Title' %} {{obj.title|default_if_none:""}}
{% trans 'Process type' %} {{obj.legal.process_type|default_if_none:""}}
{% trans 'Law' %} {% for law in obj.legal.laws.all %}
{{law.short_name}} - {{law.long_name}}

{% endfor %}
{% trans 'Registration office' %} {{obj.responsible.registration_office.str_as_office|default_if_none:""}}
{% trans 'Registration office file number' %} {{obj.responsible.registration_file_number|default_if_none:""}}
{% trans 'Conservation office' %} {{obj.responsible.conservation_office.str_as_office|default_if_none:""}}
{% trans 'Conservation office file number' %} {{obj.responsible.conservation_file_number|default_if_none:""}}
{% trans 'Intervention handler' %} {{obj.responsible.handler|default_if_none:""}}
{% trans 'Checked' %} {% if obj.checked is None %} {% fa5_icon 'star' 'far' %} {% else %} {% fa5_icon 'star' %} {% endif %}
{% trans 'Recorded' %} {% if obj.recorded is None %} {% fa5_icon 'bookmark' 'far' %} {% else %} {% fa5_icon 'bookmark' %} {% endif %}
{% trans 'Registration date' %} {{obj.legal.registration_date|default_if_none:""}}
{% trans 'Binding on' %} {{obj.legal.binding_date|default_if_none:""}}
{% trans 'Revocations' %} {{obj.legal.revocations.count}}
{% trans 'Last modified' %} {{obj.created.timestamp|default_if_none:""|naturalday}}
{{obj.created.user.username}}
{% trans 'Shared with' %} {% for user in obj.users.all %} {% include 'user/includes/contact_modal_button.html' %} {% endfor %}
{% include 'map/geom_form.html' %}
{% include 'konova/comment_card.html' %}

{% include 'intervention/detail/includes/compensations.html' %}
{% include 'intervention/detail/includes/payments.html' %}
{% include 'intervention/detail/includes/deductions.html' %}
{% include 'intervention/detail/includes/revocation.html' %}
{% include 'intervention/detail/includes/documents.html' %}
{% with 'btn-modal' as btn_class %} {% include 'modal/modal_form_script.html' %} {% endwith %} {% endblock %}