* fixes created timestamp in detail views where modified needs to be displayed * adds fallback timestamp if data has not been edited, yet --> show created timestamp * fixes bug where deleting of certain data didn't redirect to the index view * adds quality_check() method for EMA, needed for recording * adds all functions which are provided for compensations to EMA * adds/updates translations
61 lines
2.2 KiB
HTML
61 lines
2.2 KiB
HTML
{% load i18n l10n fontawesome_5 %}
|
|
<div id="deadlines" class="card">
|
|
<div class="card-header rlp-r">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<h5>
|
|
<span class="badge badge-light">{{obj.deadlines.count}}</span>
|
|
{% trans 'Deadlines' %}
|
|
</h5>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="d-flex justify-content-end">
|
|
{% if is_default_member and has_access %}
|
|
<button class="btn btn-outline-default btn-modal" data-form-url="{% url 'ema:new-deadline' obj.id %}" title="{% trans 'Add new deadline' %}">
|
|
{% fa5_icon 'plus' %}
|
|
{% fa5_icon 'calendar-check' %}
|
|
</button>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body scroll-300">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">
|
|
{% trans 'Type' %}
|
|
</th>
|
|
<th scope="col">
|
|
{% trans 'Date' %}
|
|
</th>
|
|
<th scope="col">
|
|
{% trans 'Comment' %}
|
|
</th>
|
|
<th scope="col">
|
|
{% trans 'Action' %}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for deadline in obj.deadlines.all %}
|
|
<tr>
|
|
<td class="align-middle">
|
|
{% trans deadline.type_humanized %}
|
|
</td>
|
|
<td class="align-middle">{{ deadline.date }}</td>
|
|
<td class="align-middle">{{ deadline.comment }}</td>
|
|
<td>
|
|
{% if is_default_member and has_access %}
|
|
<button data-form-url="{% url 'deadline-remove' deadline.id %}" class="btn btn-default btn-modal" title="{% trans 'Remove deadline' %}">
|
|
{% fa5_icon 'trash' %}
|
|
</button>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div> |