Add email preview functionality for candidate details: allow users to preview email content before sending

This commit is contained in:
Ross
2025-12-22 10:26:22 +00:00
parent 54e1cf4ce0
commit 7b47a75657
3 changed files with 51 additions and 22 deletions
@@ -22,6 +22,7 @@
{% endif %}
{% if user.email %}
<button type="button" class="btn btn-sm btn-outline-primary ms-2 send-login-email-btn" data-cid="{{ user.cid }}" data-url="{% url 'generic:candidate_email_details' user.cid %}">Send</button>
<a class="btn btn-sm btn-outline-secondary ms-2" href="{{ user.get_email_details_url }}?preview=1" target="_blank">View</a>
{% else %}
<span class="small text-muted ms-2">No email</span>
{% endif %}