{% set is_edit = profile is not none %} {% set form_email = profile.email_address if is_edit else prefill_email %} {% set form_name = profile.display_name or '' if is_edit else prefill_name %}

{% if is_edit %}Edit Sender Profile{% else %}Profile Sender{% endif %}

{% if prefill_error is defined and prefill_error %}
{{ prefill_error }}
{% endif %} {% if prefill_reasoning is defined and prefill_reasoning %}
AI Recommendation

{{ prefill_reasoning }}

{% endif %}
{% for val, label in email_type_options %} {% endfor %}