{% extends "helper/admin_base_action.html" %}

{% load i18n l10n %}

{% block action_title %}{% trans 'Send mail to users' %}{% endblock %}

{% block breadcrumbs_action_label %}
  {% trans 'Send mail to users' %}
{% endblock %}

{% block action_content %}
{% with count=queryset.count %}
<form action="" method="post">{% csrf_token %}
  <div>
    <p>
      <label>{% trans "Subject" %}: <input type="text" name="subject" value=""/>
    </p>
    <textarea name="body" rows="8" style="width: 100%"></textarea><br/>
    <small>{% trans "You can use the following placeholders:" %} <code>{name}, {first_name}, {last_name}, {url}</code></small>
    <input type="hidden" name="action" value="send_mail" />
    <p>
      <input type="submit" value="{% blocktrans count count=count %}Send mail to one user{% plural %}Send mail to {{ count }} users{% endblocktrans %}" />
    </p>
  </div>
  {% for obj in queryset %}
    <input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" />
  {% endfor %}
</form>
{% endwith %}
{% endblock %}

{% extends "helper/admin_base_action.html" %}

{% load i18n l10n %}

{% block action_title %}{% trans 'Send mail to users' %}{% endblock %}

{% block breadcrumbs_action_label %}
  {% trans 'Send mail to users' %}
{% endblock %}

{% block action_content %}
{% with count=queryset.count %}
<form action="" method="post">{% csrf_token %}
  <div>
    <p>
      <label>{% trans "Subject" %}: <input type="text" name="subject" value=""/>
    </p>
    <textarea name="body" rows="8" style="width: 100%">{% include "emails/footer.txt" %}</textarea><br/>
    <small>{% trans "You can use the following placeholders:" %} <code>{name}, {first_name}, {last_name}, {url}</code></small>
    <input type="hidden" name="action" value="send_mail" />
    <p>
      <input type="submit" value="{% blocktrans count count=count %}Send mail to one user{% plural %}Send mail to {{ count }} users{% endblocktrans %}" />
    </p>
  </div>
  {% for obj in queryset %}
    <input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" />
  {% endfor %}
</form>
{% endwith %}
{% endblock %}

Set email footer as default text in admin mail
Set email footer as default text in admin mail