{% extends "forms/form.html" %} {% load exfiltry %} {% load exsyntax %} {% load contenttypes %} {% block pythoncode %} {% endblock %} {% block all %} {% with table_type='simple' %} {{ block.super }} {% endwith %} {% endblock %} {% block scroll %} {% endblock %} {% block list_content_header_first_row %} {% endblock %} {% block list_content_header_second_row %} {% endblock %} {% block list_content_actions %} {% with parent.doc_type_parent.parent.name|lower as reg_name %} {% with reg_name|append_str:"docitem" as doc_name %} {% if doc_name|table_exists %} {% with "new_row/"|append_str:reg_name as action %} {% new_row "New document item" action=action %} {% endwith %} {% else %} {% new_row "New document item" %} {% endif %} {% endwith %} {% endwith %} {% endblock %} {% block list_row_header %}