{% 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 %} order description item quantity {% endblock %} {% block list_row %} {{object.order}} {{object.description}} {{object.item}} {{object.qty}} {% endblock %} {% block id_extra %} {% row_actions %} field_list-parent/accountoperation_set,Account operations,fa fa-lg fa-plus/fa fa-list-ol,url=+?fragment=page {% endrow_actions %} {{ block.super }} {% endblock %} {% block list_row_actions %} {% row_actions %} edit delete {% endrow_actions %} {% endblock %} {% block row_edit %} {% form %} {% endform %} {% endblock %}