2012-09-08 22:39:38 +00:00
|
|
|
{% extends "reviews/base.html" %}
|
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<h1>Result Notification Prepare</h1>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="span4">
|
|
|
|
<h2>Proposals</h2>
|
|
|
|
<table class="table table-striped table-compact">
|
|
|
|
{% for proposal in proposals %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>{{ proposal.speaker }}</strong> ({{ proposal.speaker.email }})
|
|
|
|
<br />
|
|
|
|
{{ proposal.title }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="span6">
|
|
|
|
<h2>Email</h2>
|
|
|
|
|
|
|
|
<form method="post" action="{% url result_notification_send section_slug status %}">
|
2012-09-08 23:21:08 +00:00
|
|
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
2012-09-09 01:10:06 +00:00
|
|
|
<label>From Address</label>
|
|
|
|
<input type="text" name="from_address" class="span5" value="{{ notification_template.from_address }}" />
|
|
|
|
<br/>
|
2012-09-08 22:49:08 +00:00
|
|
|
<label>Subject</label>
|
|
|
|
<input type="text" name="subject" class="span5" value="{{ notification_template.subject }}" />
|
2012-09-08 22:39:38 +00:00
|
|
|
<br/>
|
2012-09-08 22:49:08 +00:00
|
|
|
<label>Body</label>
|
|
|
|
<textarea class="span5" rows="10" name="body">{{ notification_template.body }}</textarea>
|
2012-09-08 22:39:38 +00:00
|
|
|
<br/>
|
|
|
|
<input type="hidden" name="notification_template" value="{{ notification_template.pk }}" />
|
|
|
|
<input type="hidden" name="proposal_pks" value="{{ proposal_pks }}" />
|
2012-09-09 01:48:50 +00:00
|
|
|
|
|
|
|
{% include "reviews/_result_notification_prepare_help.html" %}
|
|
|
|
|
2012-09-08 22:56:38 +00:00
|
|
|
<button type="submit" class="btn btn-primary">Send {{ proposals|length }} Email{{ proposals|length|pluralize }}</button>
|
2012-09-08 23:07:34 +00:00
|
|
|
<a class="btn" href="{% url result_notification section_slug status %}">Cancel</a>
|
2012-09-08 22:39:38 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|