{% extends "layouts/workspace_settings.html" %} {% block title %}WhatsApp template · DemandTrail Messaging{% endblock %} {% block page_header %}

{% if template %}Edit template{% else %}New template{% endif %}

{% endblock %} {% block content %} {% if not editable %}

This template is with Meta, or already approved, so it cannot be edited. the copy under review is the one Meta holds. Delete it and write a new one if it needs to change.

{% endif %}

Write the message once and mark the parts that change with {{ open_brace }}1{{ close_brace }}, {{ open_brace }}2{{ close_brace }} and so on. Meta numbers variables per section, so a header's first variable and a body's first variable are two different values.

{% comment %} The preview posts the form as it is typed and swaps the rendered result back into a div *inside* the form. That placement is load-bearing: the fragment renders one input per variable, and HTMX serialises the whole form on the next keystroke — so the sample values an operator types are part of the next preview. It renders through the same substitution the send path uses, so what is shown here and what a contact receives cannot drift. {% endcomment %}
{% csrf_token %} {{ form.as_p }}

Preview

Start typing to see the message.

{% if editable %}{% endif %}

Back to templates

{% endblock %}