{% macro category_tree(nodes, selected_category_ids, main_category_id) %} {% import _self as category_tree_view %} {% if nodes is not empty %} {% endif %} {% endmacro %} {% import _self as category_tree_view %} {% set row_id = 'ai-review-row-field-' ~ item.id %} {% set is_locked = item.status == 'accepted' or item.status == 'applied' %} {% set editor_panel_id = 'ai-field-editor-' ~ item.id %} {% set preview_panel_id = 'ai-field-preview-' ~ item.id %} {% set regenerate_panel_id = 'ai-field-regenerate-' ~ item.id %} {% set feedback_panel_id = 'ai-field-feedback-' ~ item.id %} {% set example_panel_id = 'ai-field-example-' ~ item.id %}
{{ item.code }} {{ item.status_label }}

{{ item.label }}

{% if is_locked %}
{% else %} {% if not item.is_json and item.code in ['title', 'short_description', 'cta', 'meta_title', 'meta_description'] %} {% endif %}
{% endif %}
{% if is_locked %} {% else %}
{{ item.rendered_html|raw }}
{% if not item.is_json and item.code in ['title', 'short_description', 'cta', 'meta_title', 'meta_description'] %} {% endif %} {% endif %}