{% extends "base.html" %} {% block title %}{{ _('Objects') }} — {{ service_name }}{% endblock %} {% block content %} {% if search_notes is defined %} {% for category, note, start, end in search_notes %} {% if category == "error" %} {% set alert_class="alert-danger" %} {% elif category == "warning" %} {% set alert_class="alert-warning" %} {% else %} {% set alert_class="alert-info" %} {% endif %}
{{ _('ID') }} | {{ _('Name') }} | {{ _('Created') }} | {{ _('Last modified') }} | {% if show_action %}{{ _('Instrument') }} | {{ _('Action') }} | {% endif %} {% for property_name in display_properties %}{{ display_property_titles[property_name] | get_translated_text }}{% if property_name not in ('hazards', 'tags') %} {% endif %} | {% endfor %}||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ _('Date') }} | {{ _('User') }} | {{ _('Date') }} | {{ _('User') }} | |||||||||
{{ object.object_id }} | {% if object.data['name']['text'] | get_translated_text == '' %}—{% else %}{{ object.data['name']['text'] | get_translated_text }}{% endif %} | {{ object.created_at | babel_format_date }} | {{ object.created_by.name }} | {{ object.last_modified_at | babel_format_date }} | {{ object.modified_by.name }} | {% if show_action %} {% if object.action is not none %} {% if object.action.instrument is not none %}{{ get_instrument_translation_for_instrument_in_language(object.action.instrument_id, get_user_language(current_user).id, use_fallback=True).name }} | {% else %}— | {% endif %}{{ action_translations[object.action.id].name }} | {% else %}— | — | {% endif %} {% endif %} {% for property_name in display_properties %} {% if object.display_properties[property_name] is not none %} {% set metadata_language = none %} {% set data = object.display_properties[property_name][0] %} {% set schema = object.display_properties[property_name][1] %} {% set z = schema.update({'parent_style': 'table'}) %}{% include "objects/view/any.html" %} | {% else %}— | {% endif %} {% endfor %}