{# Label #} {# View #}
{% if data is not none and "object_id" in data %} {% with obj = get_object_if_current_user_has_read_permissions(data.object_id) %} {% if not (obj is none) %} {% if obj.data['name']['text'] | get_translated_text(metadata_language) == '' %}—{% else %}{{ obj.data['name']['text'] | get_translated_text(metadata_language) }}{% endif %} (#{{ obj.object_id }}) {% else %} — #{{ data.object_id }} {% endif %} {% endwith %} {% else %} — {% endif %}
{{ _('Your input is not valid. Please check.') }}
{# Form #}
{% if not selected_action_type %} {% if 'action_type_id' not in schema or schema['action_type_id'] is none %} {% set selected_action_type = none %} {% else %} {% set selected_action_type = schema['action_type_id'] %} {% endif %} {% endif %} {% if 'action_id' not in schema or schema['action_id'] is none %} {% set selected_action = none %} {% else %} {% set selected_action = schema['action_id'] %} {% endif %}
{% include 'objects/forms/form_table_object_reference_base.html' %}