{#- Reusable notification template (any feature can use it). Context: subject, preheader : strings (preheader = inbox preview line) heading : big title line greeting : optional "Hello X," paragraphs : list[str] body paragraphs details : optional list[{label, value}] -> a key/value table primary_action : optional {url, label} (dark bulletproof button) secondary_action : optional {url, label} (outline-style link button) footer_note : optional override line in the footer -#} {% extends "base.html" %} {% block content %} {% if heading %}

{{ heading }}

{% endif %} {% if greeting %}

{{ greeting }}

{% endif %} {% for p in paragraphs or [] %}

{{ p }}

{% endfor %} {% if details %} {% for row in details %} {% endfor %}
{{ row.label }} {{ row.value }}
{% endif %} {% if primary_action %}
{{ button(primary_action.url, primary_action.label) }}
{% endif %} {% if secondary_action %}
{{ button(secondary_action.url, secondary_action.label, bg='#ffffff', color='#121621') }}
{% endif %} {% if primary_action or secondary_action %}

If a button doesn't work, copy this link into your browser:
{{ (primary_action and primary_action.url) or (secondary_action and secondary_action.url) }}

{% endif %} {% endblock %} {% block footer %} {{ footer_note or "This is an automated message from NID. Please do not reply." }} {% endblock %}