{% extends 'base.html' %} {% load custom_tags_and_filters %} {% block title %}Compose email{% endblock %} {% block content %}

Compose an email

{% if error %} {{ error }} {% elif generic_email_sample %}
{% csrf_token %} {% if user.is_any_part_of_staff %}
Recipients
{% if user_emails %} {% button type="export" size="small" value="Export user list" onclick="export_user_emails();" %} {% endif %}
Active users are listed below in black. Inactive users are crossed out.
{% for u in users %} {{ u }} - {{ u.email }}
{% endfor %}
{% endif %}

Email content

{% for selection_value in selection %} {% endfor %}
{% if topic %}
[{{ topic }}] {% endif %} {% if topic %}
{% endif %}
Title background color:
{% button type="view" onclick="update_preview();document.getElementById('email_preview').scrollIntoView();" value="Preview" %} {% button type="save" value="Send" icon="glyphicon-send" %} {% if user.is_any_part_of_staff and user_emails %} {% if active_user_emails|length > 2000 %}
{% button type="info" value="Use default email client" icon="glyphicon-envelope" disabled="disabled" %}
{% else %} {% button type="info" value="Use default email client" icon="glyphicon-envelope" %} {% endif %} {% endif %}

Your email will look like this...

{{ generic_email_sample|safe }}
{% else %} A generic email format has not been customized for your organization yet. You'll need to create one before you can send email broadcasts from within {{ site_title }}. Please visit the customizations page to upload a template. {% endif %} {% endblock %}