{% extends "forms/form.html" %} {% load exfiltry %} {% load exsyntax %} {% block pythoncode %} {% endblock %} {% block all %} {% if vtype == 'sublist' %} {% with table_type='datatable' %} {{ block.super }} {% endwith %} {% else %} {% with table_type='datatable' table_subtype='table_with_details' table_details_height="40vh" %} {{ block.super }} {% endwith %} {% endif %} {% endblock %} {% block list_content_header %} {% if vtype != 'sublist' %} {{ block.super }} {% endif %} {% endblock %} {% block scroll %} {% endblock %} {% block list_content_actions %} {% if vtype != 'sublist' %} {% with object_list.model|args:filter|call:"get_documents_for_reg" as doctypes %} {% for item in doctypes %} {% new_row "New document: "|append_str:item.name action="new_row/"|append_str:item.name url="+?after_close=refresh" %} {% endfor %} {% endwith %} {% endif %} {% endblock %} {% block list_row_header %}