{% load bloomerp %}
{% if has_row_rules %} {{ total_count }} included {{ model_name|lower }}{{ total_count|pluralize }} {% else %} Add a row condition to preview included objects. {% endif %} {% if has_row_rules and total_pages > 1 %} Page {{ page_number }} / {{ total_pages }} {% endif %}
{% if has_row_rules %} {% if page_obj.object_list %}
{% if preview_columns %} {% for column in preview_columns %} {% endfor %} {% else %} {% endif %} {% for row in preview_rows %} {% if preview_columns %} {% for cell in row.cells %} {% endfor %} {% else %} {% endif %} {% endfor %}
Object Permissions{{ column.title }}Object
{% for permission_label in row.row_permissions %} {{ permission_label }}{% if not forloop.last %}, {% endif %} {% empty %} - {% endfor %}
{% if cell.is_field_type.foreign_key %} {% if cell.value.get_absolute_url %} {{ cell.value }} {% else %} {{ cell.value }} {% endif %} {% elif cell.is_field_type.boolean_field %} {% if cell.value %} Yes {% else %} No {% endif %} {% else %} {{ cell.value }} {% endif %} {{ row.object }}
{% if total_pages > 1 %}
{% endif %} {% else %}
No objects are included by the current row conditions.
{% endif %} {% else %}
Add a row condition to preview included objects.
{% endif %}