{% from "templates/autodoc/macros.html" import automodule, version %} {% macro render_doctype(name) %} {% set doc = frappe.get_doc("DocType", name) %} {% set controller = autodoc.get_controller(name) %} {{ version(name) }} {% if doc.issingle %}Single{% endif %} {% if doc.istable %}Child Table{% endif %} {% if not doc.issingle %}
Table Name: tab{{ name }}
Index | Fieldname | Type | Label | Options |
---|---|---|---|---|
{{ loop.index }} | {{ df.fieldname }} |
{{ df.fieldtype }} |
{{ df.label or "" }}
{% if df.description %} {{ df.description }} {% endif %} |
{% if df.options and df.fieldtype not in ("HTML") %}
{% if df.fieldtype in ("Table", "Link") %}
{{ df.options }}
{% else %}{{ df.options }}{% endif %} {% endif %} |