{% extends 'base.html' %} {% macro render_node_tree(node) %} {% if node %} {% endif %} {% endmacro %} {% block content %}
Edit Decision Tree: {{ product.title }}
Root Node
{{ product.root_node.question }}

{{ product.root_node.content|truncate(100) }}

Edit Root Node
Tree Structure
Root {{ product.root_node.question }} {% if product.root_node.is_terminal %} Terminal {% endif %}
Yes Branch
{% if product.root_node.yes_node %} {{ render_node_tree(product.root_node.yes_node) }} {% else %}

No 'Yes' branch defined yet.

Add 'Yes' Branch {% endif %}
No Branch
{% if product.root_node.no_node %} {{ render_node_tree(product.root_node.no_node) }} {% else %}

No 'No' branch defined yet.

Add 'No' Branch {% endif %}
Tree Visualization

                                    
Preview Decision Tree

Test your decision tree from the user's perspective:

Test Decision Tree
{% endblock %}