{# Modal for request action #} {% include 'duplicate-modal.html' %} {# Modal for timestamping #} {# Modal for blockchain timestamping #} {# Modal for signature #} {% if Entity.entityData.is_procurable %} {# Modal for procurement request #} {% endif %}
{# TOP TOOLBAR #}
{# BACK TO LINK #} {% if App.Session.has('lastquery') %} {% set lastquery = App.Session.get('lastquery') %} {% else %} {% set lastquery = 'mode=show' %} {% endif %} {# for templates: create from button #} {% if Entity.entityType.value == 'experiments_templates' %} {% endif %}
{% if mode == 'edit' %} {# VIEW #} {% else %} {# EDIT #} {% if not (Entity.entityData.locked or Entity.isReadOnly) %} {% endif %} {% endif %} {% if not App.Session.has('is_anon') %} {# DUPLICATE #} {% if Entity.entityType.value == 'items' and Entity.canBook and Entity.entityData.is_bookable %} {% endif %} {% endif %} {% if not App.Session.has('is_anon') and App.Config.configArr.anon_users and Entity.entityData.access_key %} {# SHARE #}
{% endif %} {# SIGN #} {# TIMESTAMP #} {% if not App.Session.has('is_anon') and not Entity.isReadOnly %} {% endif %} {# BLOXBERG TIMESTAMP #} {% if not Entity.isReadOnly and App.Config.configArr.blox_enabled %} {% endif %} {# PROCUREMENT REQUEST #} {% if Entity.entityData.is_procurable %} {% endif %} {% if not App.Session.has('is_anon') %}
{% endif %} {# DOWNLOAD / EXPORT MENU #} {% include 'export-menu.html' %}
{% if not App.Session.has('is_anon') %} {# TOGGLE PIN #} {% include 'toggle-pin.html' %} {# LOCK #} {% set lockIcon = 'fa-lock-open' %} {% set alt = 'Lock/Unlock item'|trans %} {% if Entity.entityData.locked %} {% set lockIcon = 'fa-lock' %} {% set alt = Entity.entityData.locked_at %} {% endif %} {% endif %} {# EXCLUSIVE EDIT MODE #} {% if mode == 'edit' and App.Users.userData.enforce_exclusive_edit_mode != 1 or mode == 'view' and Entity.ExclusiveEditMode.isActive and App.Users.userData.enforce_exclusive_edit_mode == 1 %} {% set lockIcon = 'fa-lock-open' %} {% set alt = 'Enable/Disable exclusive edit mode'|trans %} {% if Entity.ExclusiveEditMode.isActive %} {% set lockIcon = 'fa-lock' %} {% endif %} {% endif %} {# REQUEST ACTION #}
{# MORE OPTIONS #}

{# show message if we are not owner #} {% if Entity.entityData.userid != Entity.Users.userData.userid %} {{ 'Owned by %s'|trans|format(Entity.entityData.fullname)|msg('ok', false) }} {% endif %}