{% extends "base.html" %} {% block title %}{{ _('Objects') }} — {{ service_name }}{% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% if get_user_language(current_user).lang_code == 'de' %} {% endif %} {% endblock %} {% block content %} {# counter for plotly_chart_plots #} {% set plot_counter = namespace(value=0) %} {% 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 %}
{% endif %} | {{ _('ID') }} | {{ _('Name') }} | {% if not edit_permissions %} {% if creation_info %}{{ _('Created') }} | {% endif %} {% if last_edit_info %}{{ _('Last modified') }} | {% endif %} {% if other_databases_info %}{{ _('Other Databases') }} | {% endif %} {% if 'instrument' in action_info and not config['DISABLE_INSTRUMENTS'] %}{{ _('Instrument') }} | {% endif %} {% if 'action' in action_info %}{{ _('Action') }} | {% endif %} {% if 'location' in location_info %}{{ _('Location') }} | {% endif %} {% if 'responsible_user' in location_info %}{{ _('Responsible User') }} | {% endif %} {% for property_name in display_properties %}{{ display_property_titles.get(property_name, property_name | e) | get_translated_text | safe }}{% if property_name not in ('hazards', 'tags') %} {% endif %} | {% endfor %}||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ _('Date') }} | {% endif %} {% if 'user' in creation_info %}{{ _('User') }} | {% endif %} {% if 'date' in last_edit_info %}{{ _('Date') }} | {% endif %} {% if 'user' in last_edit_info %}{{ _('User') }} | {% endif %}|||||||||||||||||
{{ _('None') }} | {{ _('Read') }} | {{ _('Write') }} | {{ _('Grant') }} | |||||||||||||||||
{% if (edit_location or create_from_objects or generate_labels or edit_permissions) and object.object_id not in objects_allowed_to_select %} {% endif %} {% endif %} | {{ object.object_id }} | {% if object.name | get_translated_text == '' %}—{% else %}{{ object.name | get_translated_text }}{% endif %} {{ import_information_symbol(FederationObjectRef(fed_id=object.fed_id, component_uuid=object.component.uuid)) }} | {% if not edit_permissions %} {% if 'date' in creation_info %}{{ object.created_at | babel_format_date }} | {% endif %} {% if 'user' in creation_info %}{{ user_reference(object.created_by) }} | {% endif %} {% if 'date' in last_edit_info %}{% if object.last_modified_at is not none %}{{ object.last_modified_at | babel_format_date }}{% else %}—{% endif %} | {% endif %} {% if 'user' in last_edit_info %}{{ user_reference(object.modified_by) }} | {% endif %} {% if other_databases_info %}{% set shares = get_shares_for_object(object.object_id) %} {% set components = [] %} {% if object.component is not none %} {{ components.append(object.component) or '' }} {{ object.component.get_name() }} {% endif %} {% for share in shares %} {% if share.component is not none %} {{ components.append(share.component) or '' }} {{ share.component.get_name() }} {% endif %} {% endfor %} {% if not components %} — {% endif %} | {% endif %} {% if object.action is not none %} {% if 'instrument' in action_info and not config['DISABLE_INSTRUMENTS'] %} {% if object.action.instrument is not none %}{{ object.action.instrument.name | get_translated_text(default=_('Unnamed Instrument')) }} {{ import_information_symbol(object.action.instrument) }} | {% else %}— | {% endif %} {% endif %} {% if 'action' in action_info %}{{ object.action.name | get_translated_text(default=_('Unnamed Action')) }} {{ import_information_symbol(object.action) }} | {% endif %} {% endif %} {% if 'location' in location_info %}{% if object.location_id is none %} — {% else %} {% with location = get_location(object.location_id) %} {{ location | get_location_name(True) }} {{ import_information_symbol(location) }} {% endwith %} {% endif %} | {% endif %} {% if 'responsible_user' in location_info %}{% if object.responsible_user_id is none %} — {% else %} {{ user_reference(object.responsible_user_id) }} {% endif %} | {% endif %} {% for property_name in display_properties %} {% if object.display_properties[property_name] is not none %} {% set metadata_language = none %} {% set object_id = object.object_id %} {% set id_prefix = 'object' + (object_id | string) + '__' + property_name + '_' %} {% 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 %} {% else %} {% if object["object_id"] in objects_allowed_to_select %} {% for available_permission in ['none', 'read', 'write', 'grant'] %} {% if available_permission == current_permissions_special_groups["signed-in-users"][object["object_id"]] %}{% else %} | {% endif %} {% endfor %} {% else %} | — | — | — | — | {% endif %} {% endif %}