|
|
|
@ -15,7 +15,7 @@
|
|
|
|
|
|
|
|
|
|
<div id="detail-header" class="row">
|
|
|
|
|
<div class="col-sm-12 col-md-12 col-lg-6">
|
|
|
|
|
<h3>{% trans 'Intervention' %}<br> {{intervention.identifier}}</h3>
|
|
|
|
|
<h3>{% trans 'Intervention' %}<br> {{obj.identifier}}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12 col-md-12 col-lg-6">
|
|
|
|
|
{% include 'intervention/detail/includes/controls.html' %}
|
|
|
|
@ -26,52 +26,52 @@
|
|
|
|
|
<div class="col-sm-12 col-md-12 col-lg-6">
|
|
|
|
|
<div class="table-container">
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<tr {% if not intervention.title %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.title %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th class="w-25" scope="row">{% trans 'Title' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.title|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.title|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if not intervention.legal.process_type %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.legal.process_type %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Process type' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.legal.process_type|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.legal.process_type|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if intervention.legal.laws.count == 0 %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if obj.legal.laws.count == 0 %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Law' %}</th>
|
|
|
|
|
<td class="align-middle">
|
|
|
|
|
{% for law in intervention.legal.laws.all %}
|
|
|
|
|
{% for law in obj.legal.laws.all %}
|
|
|
|
|
<div class="badge pill-badge rlp-r-outline">{{law.short_name}} - {{law.long_name}}</div>
|
|
|
|
|
<br>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if not intervention.responsible.registration_office %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.responsible.registration_office %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Registration office' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.responsible.registration_office.str_as_office|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.responsible.registration_office.str_as_office|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if not intervention.responsible.registration_file_number %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.responsible.registration_file_number %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Registration office file number' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.responsible.registration_file_number|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.responsible.registration_file_number|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if not intervention.responsible.conservation_office %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.responsible.conservation_office %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Conservation office' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.responsible.conservation_office.str_as_office|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.responsible.conservation_office.str_as_office|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if not intervention.responsible.conservation_file_number %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.responsible.conservation_file_number %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Conservation office file number' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.responsible.conservation_file_number|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.responsible.conservation_file_number|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if not intervention.responsible.handler %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.responsible.handler %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Intervention handler' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.responsible.handler|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.responsible.handler|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="row">{% trans 'Checked' %}</th>
|
|
|
|
|
<td class="align-middle">
|
|
|
|
|
{% if intervention.checked is None %}
|
|
|
|
|
{% if obj.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}}">
|
|
|
|
|
<span class="check-star" title="{% trans 'Checked on '%} {{obj.checked.timestamp}} {% trans 'by' %} {{obj.checked.user}}">
|
|
|
|
|
{% fa5_icon 'star' %}
|
|
|
|
|
</span>
|
|
|
|
|
{% endif %}
|
|
|
|
@ -80,41 +80,41 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="row">{% trans 'Recorded' %}</th>
|
|
|
|
|
<td class="align-middle">
|
|
|
|
|
{% if intervention.recorded is None %}
|
|
|
|
|
{% if obj.recorded is None %}
|
|
|
|
|
<span title="{% trans 'Not recorded yet' %}">
|
|
|
|
|
{% fa5_icon 'bookmark' 'far' %}
|
|
|
|
|
</span>
|
|
|
|
|
{% else %}
|
|
|
|
|
<span class="registered-bookmark" title="{% trans 'Recorded on '%} {{intervention.recorded.timestamp}} {% trans 'by' %} {{intervention.recorded.user}}">
|
|
|
|
|
<span class="registered-bookmark" title="{% trans 'Recorded on '%} {{obj.recorded.timestamp}} {% trans 'by' %} {{obj.recorded.user}}">
|
|
|
|
|
{% fa5_icon 'bookmark' %}
|
|
|
|
|
</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if not intervention.legal.registration_date %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.legal.registration_date %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Registration date' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.legal.registration_date|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.legal.registration_date|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if not intervention.legal.binding_date %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<tr {% if not obj.legal.binding_date %}class="alert alert-danger" title="{% trans 'Missing' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Binding on' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.legal.binding_date|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.legal.binding_date|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr {% if intervention.legal.revocation %}class="alert alert-danger" title="{% trans 'Exists' %}" {% endif %}>
|
|
|
|
|
<tr {% if obj.legal.revocation %}class="alert alert-danger" title="{% trans 'Exists' %}" {% endif %}>
|
|
|
|
|
<th scope="row">{% trans 'Revocation' %}</th>
|
|
|
|
|
<td class="align-middle">{{intervention.legal.revocation.date|naturalday|default_if_none:""}}</td>
|
|
|
|
|
<td class="align-middle">{{obj.legal.revocation.date|naturalday|default_if_none:""}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="row">{% trans 'Last modified' %}</th>
|
|
|
|
|
<td class="align-middle">
|
|
|
|
|
{{intervention.created.timestamp|default_if_none:""|naturalday}}
|
|
|
|
|
{{obj.created.timestamp|default_if_none:""|naturalday}}
|
|
|
|
|
<br>
|
|
|
|
|
{{intervention.created.user.username}}
|
|
|
|
|
{{obj.created.user.username}}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="row">{% trans 'Shared with' %}</th>
|
|
|
|
|
<td class="align-middle">
|
|
|
|
|
{% for user in intervention.users.all %}
|
|
|
|
|
{% for user in obj.users.all %}
|
|
|
|
|
{% include 'user/includes/contact_modal_button.html' %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</td>
|
|
|
|
|