{% extends "events/base.html" %}
{% load i18n %}
{% load event_tags %}
{% load perm_tags %}
{% load styled_forms %}

{% block title %}{{ block.super }}{% trans "Add" %}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/events.css">
<script type="text/javascript" src="{{ TINYMCE_JS_URL }}"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/global/tinymce.event_handlers.js"></script>
{% endblock %}

{% block body %}

<div class="t">
	 {% event_nav request.user event %}
    <h1>{% trans "Email to Event Registrants" %}</h1>
    

    <div class="event-message-wrap">
    	<form action="." method="post" name="form1">{% csrf_token %}
    	<div class="message-forms">
    		<h2>{% trans "Event Title: " %}<a href="{% url event event.id %}">{{ event.title }}</a></h2>

            <div class="recipient-set">{{ form.payment_status }}</div>

    		<div class="message-item"><a href="{% url event.registrant.roster event.id %}">{% trans "View all registrant(s)" %}</a></div>
    		
            <div class="message-item">
                <p><strong>{{ form.subject.label }}:</strong></p>
                {{ form.subject }}
            </div>

    		<div class="message-item">
                <p><strong>{{ form.body.label }}:</strong></p>
    			{{ form.body }}
    		</div>
    		
    		<div class="message-item">
    			<em><strong>
    	{% trans "For security a footer will be automatically appended indicating the sender (you!) as well as logging a security event to prevent abuse of the system" %}</strong></em>.
            </div>
            
            <div class="message-item">
    			<em><strong><font color="red">{% trans "This message will be sent IMMEDIATELY. DO NOT HIT REFRESH!" %}</font></strong></em>. 
            </div>
            
			<input type="submit" value="Send Email" />
		</div>
        </form>
    </div>

</div>
{% endblock %}

