{% extends "base.html" %} {% block title %}Instrument #{{ instrument.id }}: {{ instrument.name }} — {{ service_name }}{% endblock %} {% block content %}

{{ instrument.name }}

{% if instrument.description_as_html or instrument.description %}
{% if instrument.description_as_html %}{{ instrument.description_as_html | safe }}{% else %}

{{ instrument.description }}

{% endif %}
{% endif %} {% include "instruments/instrument_scientists.html" %} {% if not current_user.is_readonly %} {% if current_user.is_admin or current_user in instrument.responsible_users %} Edit Instrument {% endif %} {% endif %}

Actions

{% for action in instrument.actions %}

{{ action.name }}

{% if action.description_as_html %}{{ action.description_as_html | safe }}{% else %}

{{ action.description }}

{% endif %} {% 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 %} {% endfor %} {% if is_instrument_responsible_user %}

Instrument Scientist Notes

These notes are only visible to the instrument scientists. Read more.

{% if instrument.notes_as_html or instrument.notes %}
{% if instrument.notes_as_html %}{{ instrument.notes_as_html | safe }}{% else %}

{{ instrument.notes }}

{% endif %}
{% else %} — {% endif %} {% endif %} {% if is_instrument_responsible_user or instrument.users_can_create_log_entries or instrument.users_can_view_log_entries %}

Instrument Log

{% if is_instrument_responsible_user %} Instrument scientists can use the instrument log to keep track of problems, maintenance or other events. Instrument scientists can edit the instrument settings to configure whether users can create or view log entries. {% if instrument.users_can_view_log_entries and instrument.users_can_create_log_entries %} Currently, users can create and view log entries. {% elif instrument.users_can_create_log_entries %} Currently, users cannot view log entries, but they can create new entries. {% elif instrument.users_can_view_log_entries %} Currently, users can view log entries, but they cannot create new entries. {% else %} Currently, users can neither create nor view log entries. {% endif %} {% else %} {% if instrument.users_can_view_log_entries %} Instrument scientists can use the instrument log to keep track of problems, maintenance or other events. {% endif %} {% if instrument.users_can_create_log_entries %} Users can create entries in the instrument log to notify instrument scientists about any issues they encounter. {% endif %} {% endif %} Read more.

{% if is_instrument_responsible_user or instrument.users_can_view_log_entries %} {% if instrument_log_entries %} {% if instrument_log_categories %}
{% endif %} {% for log_entry in instrument_log_entries %}
{% for category in log_entry.categories %} {{ category.title }} {% endfor %}
{% if log_entry.content %}
{{ log_entry.content }}
{% endif %}
{{ log_entry.author.name }}, {{ log_entry.utc_datetime.strftime('%Y-%m-%d %H:%M:%S') }}
{% set file_attachments = log_entry.file_attachments %} {% if file_attachments %}
Attached Files:
{% endif %} {% set object_attachments = log_entry.object_attachments %} {% if object_attachments %}
Attached Objects:
{% endif %}
{% endfor %} {% else %}

There are no log entries for this instrument.

{% endif %} {% endif %} {% if not current_user.is_readonly and (is_instrument_responsible_user or instrument.users_can_create_log_entries) %}
{{ instrument_log_entry_form.csrf_token }} {% set log_entry_text_missing = [] %} {% for message in get_flashed_messages() %} {% if 'Please enter a log entry text' in message %} {{ log_entry_text_missing.append(True) }} {% endif %} {% endfor %}
{% if instrument_log_entry_form.content.errors or log_entry_text_missing %} Please enter a log entry text, upload a file or select an object. {% endif %}
{% if instrument_log_entry_form.objects.choices %}
{% endif %}
{% if instrument_log_entry_form.categories.choices %} {% endif %}
or
{% endif %} {% endif %} {% if mobile_upload_qrcode and mobile_upload_url%} {% endif %} {% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}