180 lines
		
	
	
		
			8.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			180 lines
		
	
	
		
			8.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends 'base.html' %}
 | 
						|
{% load i18n l10n static fontawesome_5 humanize %}
 | 
						|
 | 
						|
{% block head %}
 | 
						|
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block body %}
 | 
						|
 | 
						|
    <div id="detail-header" class="row">
 | 
						|
        <div class="col-sm-12 col-md-12 col-lg-6">
 | 
						|
            <h3>{% trans 'Intervention' %} {{intervention.identifier}}</h3>
 | 
						|
        </div>
 | 
						|
        <div class="col-sm-12 col-md-12 col-lg-6">
 | 
						|
            <div class="d-flex justify-content-end">
 | 
						|
                <a href="{% url 'home' %}" class="mr-2">
 | 
						|
                    <button class="btn btn-default" title="{% trans 'Open in LANIS' %}">
 | 
						|
                        LANIS
 | 
						|
                    </button>
 | 
						|
                </a>
 | 
						|
                <a href="{% url 'home' %}" class="mr-2">
 | 
						|
                    <button class="btn btn-default" title="{% trans 'Public report' %}">
 | 
						|
                        {% fa5_icon 'file-alt' %}
 | 
						|
                    </button>
 | 
						|
                </a>
 | 
						|
                {% if has_access %}
 | 
						|
                <button class="btn btn-default btn-modal mr-2" title="{% trans 'Share' %}" data-form-url="{% url 'intervention:share-create' intervention.id %}">
 | 
						|
                    {% fa5_icon 'share-alt' %}
 | 
						|
                </button>
 | 
						|
                <a href="{% url 'home' %}" class="mr-2">
 | 
						|
                    <button class="btn btn-default" title="{% trans 'Run check' %}">
 | 
						|
                        {% fa5_icon 'star' %}
 | 
						|
                    </button>
 | 
						|
                </a>
 | 
						|
                <a href="{% url 'home' %}" class="mr-2">
 | 
						|
                    <button class="btn btn-default" title="{% trans 'Record' %}">
 | 
						|
                        {% fa5_icon 'bookmark' %}
 | 
						|
                    </button>
 | 
						|
                </a>
 | 
						|
                <a href="{% url 'home' %}" class="mr-2">
 | 
						|
                    <button class="btn btn-default" title="{% trans 'Edit' %}">
 | 
						|
                        {% fa5_icon 'edit' %}
 | 
						|
                    </button>
 | 
						|
                </a>
 | 
						|
                <a href="{% url 'home' %}" class="mr-2">
 | 
						|
                    <button class="btn btn-default" title="{% trans 'Delete' %}">
 | 
						|
                        {% fa5_icon 'trash' %}
 | 
						|
                    </button>
 | 
						|
                </a>
 | 
						|
                {% endif %}
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
    <hr>
 | 
						|
    <div id="data" class="row">
 | 
						|
        <div class="col-sm-12 col-md-12 col-lg-6">
 | 
						|
            <div class="table-container">
 | 
						|
                <table class="table table-hover">
 | 
						|
                    <tr>
 | 
						|
                        <th class="w-25" scope="row">{% trans 'Title' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.title}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Process type' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.legal.process_type|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Law' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.legal.law|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Registration office' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.responsible.registration_office|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Registration office file number' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.responsible.registration_file_number|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Conservation office' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.responsible.conservation_office|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Conversation office file number' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.responsible.conservation_file_number|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Intervention handler' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.responsible.handler|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Checked' %}</th>
 | 
						|
                        <td class="align-middle">
 | 
						|
                            {% if intervention.checked is None %}
 | 
						|
                                <span>
 | 
						|
                                    {% fa5_icon 'star' 'far' %}
 | 
						|
                                </span>
 | 
						|
                            {% else %}
 | 
						|
                                <span class="check-star" title="{% trans 'Checked on '%} {{intervention.checked.timestamp}} {% trans 'by' %} {{intervention.checked.user}}">
 | 
						|
                                    {% fa5_icon 'star' %}
 | 
						|
                                </span>
 | 
						|
                            {% endif %}
 | 
						|
                        </td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Recorded' %}</th>
 | 
						|
                        <td class="align-middle">
 | 
						|
                            {% if intervention.recorded is None %}
 | 
						|
                                <span>
 | 
						|
                                    {% fa5_icon 'bookmark' 'far' %}
 | 
						|
                                </span>
 | 
						|
                            {% else %}
 | 
						|
                                <span class="registered-bookmark" title="{% trans 'Recorded on '%} {{intervention.recorded.timestamp}} {% trans 'by' %} {{intervention.recorded.user}}">
 | 
						|
                                    {% fa5_icon 'bookmark' %}
 | 
						|
                                </span>
 | 
						|
                            {% endif %}
 | 
						|
                        </td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Registration date' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.legal.registration_date|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Binding on' %}</th>
 | 
						|
                        <td class="align-middle">{{intervention.legal.binding_date|default_if_none:""}}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Last modified' %}</th>
 | 
						|
                        <td class="align-middle">
 | 
						|
                            {{intervention.created.timestamp|default_if_none:""|naturalday}}
 | 
						|
                            <br>
 | 
						|
                            {% with intervention.created.user as user %}
 | 
						|
                                {% include 'user/includes/contact_modal_button.html' %}
 | 
						|
                            {% endwith %}
 | 
						|
                        </td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <th scope="row">{% trans 'Shared with' %}</th>
 | 
						|
                        <td class="align-middle">
 | 
						|
                            {% for user in intervention.users.all %}
 | 
						|
                                {% include 'user/includes/contact_modal_button.html' %}
 | 
						|
                            {% endfor %}
 | 
						|
                        </td>
 | 
						|
                    </tr>
 | 
						|
                </table>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
        <div class="col-sm-12 col-md-12 col-lg-6">
 | 
						|
            {% if geom_form.area == 0 %}
 | 
						|
                <div class="alert alert-info">{% trans 'No geometry added, yet.' %}</div>
 | 
						|
            {% endif %}
 | 
						|
            {{geom_form.media}}
 | 
						|
            {{geom_form.geom}}
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
    <hr>
 | 
						|
 | 
						|
    <div class="row">
 | 
						|
        <div class="col-sm-12 col-md-12 col-lg-6">
 | 
						|
            {% include 'intervention/detail/includes/compensations.html' %}
 | 
						|
        </div>
 | 
						|
        <div class="col-sm-12 col-md-12 col-lg-6">
 | 
						|
            {% include 'intervention/detail/includes/payments.html' %}
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
    <div class="row">
 | 
						|
        <div class="col-sm-12 col-md-12 col-lg-6">
 | 
						|
            {% include 'intervention/detail/includes/eco-account-withdraws.html' %}
 | 
						|
        </div>
 | 
						|
        <div class="col-sm-12 col-md-12 col-lg-6">
 | 
						|
            {% include 'intervention/detail/includes/documents.html' %}
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
 | 
						|
 | 
						|
{% with 'btn-modal' as btn_class %}
 | 
						|
    {% include 'modal/modal_form_script.html' %}
 | 
						|
{% endwith %}
 | 
						|
 | 
						|
{% endblock %} |