{% extends "base.html" %} {% block title %}Action #{{ action.id }}: {{ action.name }} — {{ service_name }}{% endblock %} {% block content %}
{% if is_public %}{% else %}{% endif %} This custom action is {% if not is_public %}not {% endif %}public.
{% endif %} {% if action.description_as_html %}{{ action.description_as_html | safe }}{% else %}{{ action.description }}
{% endif %} {% with instrument = action.instrument %} {% include "instruments/instrument_scientists.html" %} {% endwith %} {% if action.type == ActionType.MEASUREMENT %} View Measurements {% if not current_user.is_readonly %} Perform Measurement {% endif %} {% elif action.type == ActionType.SIMULATION %} View Simulations {% if not current_user.is_readonly %} Perform Simulation {% endif %} {% else %} View Samples {% if not current_user.is_readonly %} Create Sample {% endif %} {% endif %} {% if not current_user.is_readonly %} {% if may_edit %} Edit Action {% endif %} Use as Template {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}