made email help a template snippet
This commit is contained in:
parent
bd2fd5338d
commit
a224a70303
2 changed files with 10 additions and 4 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
<b>Body</b> may include the following variables which will be substituted in the email with a value
|
||||||
|
specific to each proposal:
|
||||||
|
<ul>
|
||||||
|
<li><code>{% templatetag openvariable %} proposal.title {% templatetag closevariable %}</code> e.g. {{ proposals.0.title }}
|
||||||
|
<li><code>{% templatetag openvariable %} proposal.kind {% templatetag closevariable %}</code> e.g. {{ proposals.0.kind }}
|
||||||
|
<li><code>{% templatetag openvariable %} proposal.speaker {% templatetag closevariable %}</code> e.g. {{ proposals.0.speaker }}
|
||||||
|
</ul>
|
|
@ -38,10 +38,9 @@
|
||||||
<br/>
|
<br/>
|
||||||
<input type="hidden" name="notification_template" value="{{ notification_template.pk }}" />
|
<input type="hidden" name="notification_template" value="{{ notification_template.pk }}" />
|
||||||
<input type="hidden" name="proposal_pks" value="{{ proposal_pks }}" />
|
<input type="hidden" name="proposal_pks" value="{{ proposal_pks }}" />
|
||||||
<p>
|
|
||||||
If the <b>Body</b> includes the string <code>{% templatetag openvariable %} proposal {% templatetag closevariable %}</code> then it will be
|
{% include "reviews/_result_notification_prepare_help.html" %}
|
||||||
replaced with the title of the proposal when the email is sent.
|
|
||||||
</p>
|
|
||||||
<button type="submit" class="btn btn-primary">Send {{ proposals|length }} Email{{ proposals|length|pluralize }}</button>
|
<button type="submit" class="btn btn-primary">Send {{ proposals|length }} Email{{ proposals|length|pluralize }}</button>
|
||||||
<a class="btn" href="{% url result_notification section_slug status %}">Cancel</a>
|
<a class="btn" href="{% url result_notification section_slug status %}">Cancel</a>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue