{% load i18n %} {% load interventions_tags %} {# Desktop operation display row for read mode - with colored badges #}
{% if op.is_custom %}{% endif %} {% if LANGUAGE_CODE == 'nl' %} {{ op.name_nl }} {% else %} {{ op.name_fr }} {% endif %}
{% if op.comment %}{{ op.comment|linebreaksbr }}{% endif %}
{# Photos thumbnails in read mode #} {% if op.photos.all %}
{% for photo in op.photos.all %} {% private_file_url photo 'photo' as photo_url %} {{ photo.description }} {% endfor %}
{% endif %} {% if op.is_not_applicable %} {% translate "N/A" %} {% elif op.is_measurement %} {% if op.measurement_definition.value_type == 'duration' %} {% if op.measured_duration is not None %} {{ op.measured_duration_display }} {% if op.is_measurement_out_of_range %} {% endif %} {% else %} - {% endif %} {% elif op.measurement_definition.value_type == 'datetime' %} {% if op.measured_datetime is not None %} {{ op.measured_datetime|date:"d/m/Y H:i" }} {% if op.is_measurement_out_of_range %} {% endif %} {% else %} - {% endif %} {% else %} {% if op.measured_value is not None %} {{ op.measured_value }} {{ op.measurement_definition.unit }} {% if op.is_measurement_out_of_range %} {% endif %} {% else %} - {% endif %} {% endif %} {% elif op.status %} {% if op.status.bootstrap_icon %}{% endif %} {% if LANGUAGE_CODE == "nl" %}{{ op.status.label_nl }}{% else %}{{ op.status.label_fr }}{% endif %} {% else %} - {% endif %} {% if 'operations' in allowed_update_fields %} {% endif %}