blob: e6f23677055b2e667ddc288008f3c756ceb16781 [file] [log] [blame]
{% extends "experimentpage.html" %}
{% block content %}
<form method="POST" name="emailBlast" action="{%url 'exp_portal:send_email' %}">
<div>
<div class="emailRow">
<label for="email-to" class="emailLabel">To:</label>
<input class="emailInput" name="email_to" id="email-to"/>
<div class="input-group-btn">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-user"></span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" id="contacts">
<li value="all">All Participants</li>
<div role="separator" class="divider"></div>
{% for userprofile in userprofiles %}
<li>{{userprofile.user.email}}</li>
{% endfor %}
</ul>
</div>
</div>
<div class="emailRow">
<label for="email-subject" class="emailLabel">Subject:</label>
<input class="emailInput" name="email_subject" id="email-subject"/>
</div>
<div class="emailRow">
<label for="email-message" class="emailLabel">Message:</label>
<div>
<textarea name="email_message" id="email-message"></textarea>
</div>
</div>
</div>
<div id="emailSubmit">
<input class="btn btn-default" type="submit" value="Send Mail">
</div>
{% csrf_token %}
</form>
<div id="statusMessage" class="{{ status }}">
{{ statusMessage }}
</div>
{% endblock %}