{% load dict_key_extras %} {% load timestamptags %} {% load special_plural %} {% load tz %} {% for data_loaded in objects %}
{% if data_loaded.can_read %} {{ data_loaded.data.title }} ({{ data_loaded.data_role }}) {% else %} {{ data_loaded.data.title }} ({{ data_loaded.data_role }}) {% endif %} {% if data.administration and data_loaded.forms_count > 0 %} , Draft{{ data_loaded.forms_count|pluralize }} {% elif data_loaded.form_id %} , Draft {% endif %} {% if data_loaded.data_status == data_loaded.data_status_values.ACTIVE %} {% endif %} {% if data_loaded.data_status == data_loaded.data_status_values.INACTIVE %} {% endif %} {% if data_loaded.data_status == data_loaded.data_status_values.DELETED %} {% endif %} {% if data_loaded.data_status == data_loaded.data_status_values.ACTIVE %} Active {% endif %} {% if data_loaded.data_status == data_loaded.data_status_values.INACTIVE %} Inactive {% endif %} {% if data_loaded.data_status == data_loaded.data_status_values.DELETED %} Deleted {% endif %}
{% if data_loaded.data.workspace %} {{ data_loaded.data.workspace.title }} {% else %} No workspace assigned {% endif %} {% with key=data_loaded.data.user_id %} {{ data_loaded.username_list|get:key }} {% endwith %}
{% if data_loaded.can_change_workspace %} Change workspace {% endif %} {% if data_loaded.is_owner %} Change owner {% endif %} {% if data_loaded.can_write %} {% if data_loaded.form_id %} Edit draft {% else %} Create new version {% endif %} {% if data_loaded.form_id %} Open Draft {% else %} Open {% endif %} {% endif %} {% if data_loaded.can_write %} {% if data.administration %} {% url 'core-admin:core_dashboard_app_edit_data' data_loaded.data.id as edit_url %} {% else %} {% url 'core_dashboard_app_edit_data' data_loaded.data.id as edit_url %} {% endif %} {% include 'core_main_app/common/buttons/edit.html' with label="Edit Title" %} {% if data.administration %} {% with data_loaded.delete_url as delete_url %} {% include 'core_main_app/common/buttons/delete.html' %} {% endwith %} {% endif %} {% if data.administration and data_loaded.forms_count > 0 %} Delete Draft{{ data_loaded.forms_count|pluralize }} {% elif data_loaded.form_id %} Delete Draft {% endif %} {% endif %} {% if data_loaded.can_set_public %} Publish {% endif %} {% if data_loaded.can_set_public %}Updated{% else%}Published{% endif %} on: {{ data_loaded.data.last_modification_date|localtime }}
{% empty %} No {{data.document}} found. {% endfor %}