{% extends "layouts/dashboard.html" %} {% load i18n %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% translate "Edit template" %}

{{ instance.name|default:verb }}

{{ verb }}

{% blocktranslate %}Subject and body fields use Django template syntax — wrap variables like {{ recipient_name }} or {{ course_title }}. The available variables depend on the verb; see the seeded defaults for examples.{% endblocktranslate %}

{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{{ form.name }}

{% translate "Human-readable label shown when listing templates." %}

{% if form.name.errors %}

{{ form.name.errors.0 }}

{% endif %}
{{ form.subject }} {% if form.subject.errors %}

{{ form.subject.errors.0 }}

{% endif %}
{{ form.headline_default }}

{% translate "Bold opener used in the in-app card." %}

{{ form.action_label_default }}

{% translate "Button text — e.g. \"Open course\", \"Review application\"." %}

{{ form.body_text }}

{% translate "Falls back to the message argument when blank. Used when an email client can't render HTML." %}

{% if form.body_text.errors %}

{{ form.body_text.errors.0 }}

{% endif %}
{{ form.body_html }}

{% translate "Optional. Wrapped in the generic email shell when set. Use the same template variables as the subject." %}

{% if form.body_html.errors %}

{{ form.body_html.errors.0 }}

{% endif %}
{% translate "Cancel" %}
{% endblock %}