{% extends "base.html" %} {% block title %}{{ _("Action") }} #{{ action.id }}: {{ action.name | get_translated_text }} — {{ service_name }}{% endblock %} {% block content %}

{{ _("Action") }} #{{ action.id }}: {% if action.user_id is not none %} {% set action_owner = get_user(action.user_id) %} {{ action_owner.get_name() }} {{ import_information_symbol(action_owner) }} / {% endif %} {% if action.instrument is not none and not config['DISABLE_INSTRUMENTS'] %} {{ action.instrument.name | get_translated_text(default=_('Unnamed Instrument')) }} {{ import_information_symbol(action.instrument) }} — {% endif %} {{ action.name | get_translated_text }} {{ import_information_symbol(action) }}

{% if action.user_id is not none %}

{% if not is_public %} {{ _("This custom action is not public.") }} {% else %} {{ _("This custom action is public.") }} {% endif %}

{% endif %} {% if action.is_hidden %}

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

{% endif %} {% if action.disable_create_objects %}

{{_("Creating objects with this action has been disabled.") }}

{% elif action.admin_only %}

{{_("Only administrators can create objects with this action.") }}

{% endif %} {% if action.type is not none and action.type.admin_only and not current_user.is_admin %}

{{_("Only administrators can edit this action.") }}

{% endif %} {% if action.description | get_translated_text %}
{% if action.description_is_markdown %}{{ action.description | get_translated_text | markdown_to_safe_html(anchor_prefix='action-description') | safe }}{% else %}

{{ action.description | get_translated_text }}

{% endif %}
{% endif %} {% if not config['DISABLE_INSTRUMENTS'] %} {% with instrument = action.instrument %} {% include "instruments/instrument_scientists.html" %} {% endwith %} {% endif %} {% if action.type_id is none or not action.type.disable_create_objects %} {{ action.type.view_text | get_translated_text(default=_('View Objects')) if action.type_id else _('View Objects') }} {% if not current_user.is_readonly and action.type_id is not none and action.schema is not none and (not action.disable_create_objects) and (not action.admin_only or current_user.is_admin) %} {{ action.type.perform_text | get_translated_text(default=_('Create Object')) if action.type_id else _('Create Object') }} {% endif %} {% endif %} {% if not current_user.is_readonly %} {% if may_edit %} {{ _("Edit Action") }} {% endif %} {% if may_grant %} {{ _('Edit Permissions') }} {% endif %} {% if action.type_id is not none and action.schema is not none and (not action.type.admin_only or current_user.is_admin) %} {{ _("Use as Template") }} {% endif %} {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}