{# -*- coding: utf-8 -*- #} {% extends "forms/form.html" %} {% load exfiltry %} {% load exsyntax %} {% block pythoncode %} {% endblock %} {% block all %} {% with table_type='datatable' %} {{ block.super }} {% endwith %} {% endblock %} {% block scroll %} {% endblock %} {% block list_content_actions %} {% 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 %} {% endfor %} {% endwith %} {% endblock %} {% block list_row_header %}