use button dropdown to convey accept/reject state as well as actions
This commit is contained in:
parent
37c976c2f7
commit
69877075c7
1 changed files with 30 additions and 17 deletions
|
@ -16,23 +16,36 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{% if request.user.is_staff %}
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<form class="result-form form-inline" method="POST" action="">
|
<form class="result-form form-inline" method="POST" action="">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
<div class="btn-group">
|
||||||
{% if proposal.result.get_accepted_display == "accepted" %}
|
{% if proposal.result.get_accepted_display == "accepted" %}
|
||||||
<input type="submit" name="result_submit" value="reject" class="btn btn-danger" />
|
<a class="btn dropdown-toggle btn-success" data-toggle="dropdown" href="#">Accepted <span class="caret"></span></a>
|
||||||
<input type="submit" name="result_submit" value="undecide" class="btn" />
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<li><input type="submit" name="result_submit" value="reject" class="btn btn-danger" /></li>
|
||||||
|
<li><input type="submit" name="result_submit" value="undecide" class="btn" /></li>
|
||||||
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if proposal.result.get_accepted_display == "rejected" %}
|
{% if proposal.result.get_accepted_display == "rejected" %}
|
||||||
<input type="submit" name="result_submit" value="accept" class="btn btn-success" />
|
<a class="btn dropdown-toggle btn-danger" data-toggle="dropdown" href="#">Rejected <span class="caret"></span></a>
|
||||||
<input type="submit" name="result_submit" value="undecide" class="btn" />
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<li><input type="submit" name="result_submit" value="accept" class="btn btn-success" /></li>
|
||||||
|
<li><input type="submit" name="result_submit" value="undecide" class="btn" /></li>
|
||||||
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
<input type="submit" name="result_submit" value="accept" class="btn btn-success" />
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Undecided <span class="caret"></span></a>
|
||||||
<input type="submit" name="result_submit" value="reject" class="btn btn-danger" />
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<li><input type="submit" name="result_submit" value="accept" class="btn btn-success" /></li>
|
||||||
|
<li><input type="submit" name="result_submit" value="reject" class="btn btn-danger" /></li>
|
||||||
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h3>#{{ proposal.number }}: {{ proposal.title }} ({{ proposal.speaker }}, Track: {{ proposal.track }})</h3>
|
<h3>#{{ proposal.number }}: {{ proposal.title }} ({{ proposal.speaker }}, Track: {{ proposal.track }})</h3>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue