{# Per-field "AI Suggestion Available" button. Renders nothing unless the field has opted into AI suggestions via ``ai_suggestion: true`` in the scheming YAML. The actual show/hide is then driven by ``scheming-ai-suggestions.js`` once polling detects suggestions on the package — the JS hides the button on init and shows it only when ``dpp_suggestions.ai_suggestions`` has a matching entry. Shared snippet so the same AI affordance is available across form-snippet presets (markdown / text / select / …). Mirrors the ``suggestion_button.html`` pattern for formula-derived suggestions. Required context: ``field`` (the scheming field dict), ``data`` (the package data with ``dpp_suggestions`` extras). #} {%- if h.scheming_field_supports_ai_suggestion(field) -%} {% set ai_suggestion_value = h.scheming_get_ai_suggestion_value(field.field_name, data) %} {% set ai_suggestion_source = h.scheming_get_ai_suggestion_source(field.field_name, data) %} {%- endif -%}