* refactors 'new' view methods into classes for eiv and ema
* refactors 'edit' view methods into classes for eiv and ema
* reorganizes permissions on non-conservation-office users on ema entries
* users can now open the log view properly if they have shared access
* ema actions that require conservation office permission are now hidden on the frontend for non-conservation-office users
48 lines
2.2 KiB
HTML
48 lines
2.2 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 'ema:report' obj.id %}" target="_blank" class="mr-2">
|
|
<button class="btn btn-default" title="{% trans 'Public report' %}">
|
|
{% fa5_icon 'file-alt' %}
|
|
</button>
|
|
</a>
|
|
{% if is_entry_shared %}
|
|
<button class="btn btn-default btn-modal mr-2" title="{% trans 'Resubmission' %}" data-form-url="{% url 'ema:resubmission-create' obj.id %}">
|
|
{% fa5_icon 'bell' %}
|
|
</button>
|
|
{% if is_ets_member %}
|
|
<button class="btn btn-default btn-modal mr-2" title="{% trans 'Share' %}" data-form-url="{% url 'ema:share-form' obj.id %}">
|
|
{% fa5_icon 'share-alt' %}
|
|
</button>
|
|
{% 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 %}
|
|
<a href="{% url 'ema:edit' obj.id %}" class="mr-2">
|
|
<button class="btn btn-default" title="{% trans 'Edit' %}">
|
|
{% fa5_icon 'edit' %}
|
|
</button>
|
|
</a>
|
|
{% endif %}
|
|
{% if is_default_member %}
|
|
<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>
|
|
{% endif %}
|
|
{% if is_ets_member %}
|
|
<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> |