{# Partial block debug - rendered alone on the research results #} {% block object_debug %}
{{ object.debug_content|raw }}
{% endblock object_debug %} {# END Partial block - rendered alone on the research results #}
{% if object.records_count > 0 %}
{{ object.select_number_per_page|raw }}

{% endif %}
{% if object.can_create == true %} {{ constant('ADD_NEW') }} {% endif %} {% if object.records_count > 0 %} {{ object.export_data_button|raw }} {% endif %}
{% set search_value = '' %} {% if attribute(session.rp_search_string, object.table) is defined %} {% set search_value = attribute(session.rp_search_string, object.table) %} {% endif %}
{# Partial block list - rendered alone on the research results #} {% block object_list %} {% set filtered_class = { id: 'id' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'', name: 'name' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'' } %}
{% if object.records_count > 0 %}
{% if constant('ADMIN_ACTION_BUTTONS_POSITION') == 'left' %} {% endif %} {% if constant('ADMIN_ACTION_BUTTONS_POSITION') == 'right' %} {% endif %} {% for i in range(0, object.records_count - 1) %} {% if constant('ADMIN_ACTION_BUTTONS_POSITION') == 'left' %} {% endif %} {{ object.id[ loop.index0 ]|replace({'[|]': ' '}) }} {{ object.name[ loop.index0 ]|replace({'[|]': ' '}) }} {% if object.external_tables_count > 0 %} {% for j in range(0, object.external_tables_count - 1) %} {% endfor %} {% endif %} {% if constant('ADMIN_ACTION_BUTTONS_POSITION') == 'right' %} {% endif %} {% endfor %}
{{ constant('ACTION_CONST') }}{{ object.fields.id }} {{ object.fields.name }}{{ constant('ACTION_CONST') }}
{% if object.update_record_authorized[object.pk_concat_values[loop.index0]] == true %} {% endif %} {% if object.can_create == true %} {% endif %}
{% if object.external_rows_count[i][j] > 0 %}
{{ object.external_add_btn[i][j]|raw }}
{% for field, value in object.external_fields[i][j].fieldnames %}
{{ value }}
{% endfor %}
{# Loop records #} {% for k in range(0, object.external_rows_count[i][j] - 1) %}
{# Loop fields #} {% for field, value in object.external_fields[i][j].fields %}
{{ object.external_fields[i][j].fields[field][k]|raw }}
{% endfor %}
{% endfor %}
{% else %} {{ object.external_add_btn[i][j]|raw }} {% endif %}
{% if object.update_record_authorized[object.pk_concat_values[loop.index0]] == true %} {% endif %} {% if object.can_create == true %} {% endif %}
{% else %}

{{ alert(constant('NO_RECORD_FOUND'), 'alert-info has-icon')|raw }}

{% endif %}
{{ object.pagination_html|raw }}
{% endblock object_list %} {# END Partial block - rendered alone on the research results #}