{% extends "base.html" %} {% block title %} {{ _('Actions') }} — {{ service_name }}{% endblock %} {% block content %}

{% if action_type %}{{ _('%(action_type)s Actions', action_type=action_type.translation.name) }} {% else %}{{ _('Actions') }}{% endif %}

{% if action_type and action_type.translation.description %}{{ action_type.translation.description }}{% else %}{{ _('Actions represent processes like creating a sample or performing a measurement.') }}{% endif %} {{ _("Read more.") }}

{% if current_user.is_admin and not current_user.is_readonly %} {% if action_type %} {{ _("Create Action") }} {% else %} {{ _("Create Action") }} {% endif %} {% endif %} {% for action in actions %}
{{ toggle_favorite_action_form.csrf_token() }}

{% if action.user is not none %} {{ action.user.name }} / {% endif %} {% if action.instrument is not none %} {{ action.instrument.translation.name }} — {% endif %} {{ action.translation.name }}

{% if action.is_hidden %}

{{ _("This action has been hidden from action lists.") }}

{% endif %} {% if action.translation.short_description %}
{% if action.short_description_is_markdown %}{{ action.translation.short_description | markdown_to_safe_html(anchor_prefix='action-short-description') | safe }}{% else %}

{{ action.translation.short_description }}

{% endif %}
{% endif %} {% with instrument = action.instrument %} {% include "instruments/instrument_scientists.html" %} {% endwith %} {% if not action.type.disable_create_objects %}

{{ action.type.translation.view_text }} {% if not current_user.is_readonly %} {{ action.type.translation.perform_text }} {% endif %}

{% endif %} {% endfor %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}