symposion_app/pinaxcon/templates/symposion/reviews/result_notification_prepare.html

50 lines
2 KiB
HTML
Raw Normal View History

{% extends "symposion/reviews/base.html" %}
{% load i18n %}
{% block body %}
<h1>Result Notification Prepare</h1>
<div class="row">
<div class="col-md-4">
<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="col-md-6">
<h2>Email</h2>
<form class="form-horizontal" method="post" action="{% url "result_notification_send" section_slug status %}">
{% csrf_token %}
<label>From Address</label>
<input type="text" name="from_address" class="span5" value="{{ notification_template.from_address }}" />
<br/>
<label>Subject</label>
<input type="text" name="subject" class="span5" value="{{ notification_template.subject }}" />
<br/>
<label>Body</label>
<textarea class="span5" rows="10" name="body">{{ notification_template.body }}</textarea>
<br/>
<input type="hidden" name="notification_template" value="{{ notification_template.pk }}" />
<input type="hidden" name="proposal_pks" value="{{ proposal_pks }}" />
{% include "symposion/reviews/_result_notification_prepare_help.html" %}
<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>
</form>
</div>
</form>
{% endblock %}