* 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
40 lines
1.6 KiB
HTML
40 lines
1.6 KiB
HTML
{% load i18n l10n fontawesome_5 %}
|
|
|
|
<div class="d-flex justify-content-end">
|
|
<a href="{{LANIS_LINK}}" class="mr-2" target="_blank">
|
|
<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 %}
|
|
{% if is_ets_member %}
|
|
{% if obj.recorded %}
|
|
<button class="btn btn-default btn-modal mr-2" title="{% trans 'Unrecord' %}" data-form-url="{% url 'ema:record' obj.id %}">
|
|
{% fa5_icon 'bookmark' 'far' %}
|
|
</button>
|
|
{% else %}
|
|
<button class="btn btn-default btn-modal mr-2" title="{% trans 'Record' %}" data-form-url="{% url 'ema:record' obj.id %}">
|
|
{% fa5_icon 'bookmark' %}
|
|
</button>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if is_default_member %}
|
|
<a href="{% url 'home' %}" class="mr-2">
|
|
<button class="btn btn-default" title="{% trans 'Edit' %}">
|
|
{% fa5_icon 'edit' %}
|
|
</button>
|
|
</a>
|
|
<button class="btn btn-default btn-modal mr-2" data-form-url="{% url 'ema:log' obj.id %}" title="{% trans 'Show log' %}">
|
|
{% fa5_icon 'history' %}
|
|
</button>
|
|
<button class="btn btn-default btn-modal" data-form-url="{% url 'ema:remove' obj.id %}" title="{% trans 'Delete' %}">
|
|
{% fa5_icon 'trash' %}
|
|
</button>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div> |