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 %}
|
||||||
<div class="pull-right">
|
{% if request.user.is_staff %}
|
||||||
<form class="result-form form-inline" method="POST" action="">
|
<div class="pull-right">
|
||||||
{% csrf_token %}
|
<form class="result-form form-inline" method="POST" action="">
|
||||||
{% if proposal.result.get_accepted_display == "accepted" %}
|
{% csrf_token %}
|
||||||
<input type="submit" name="result_submit" value="reject" class="btn btn-danger" />
|
<div class="btn-group">
|
||||||
<input type="submit" name="result_submit" value="undecide" class="btn" />
|
{% if proposal.result.get_accepted_display == "accepted" %}
|
||||||
{% else %}
|
<a class="btn dropdown-toggle btn-success" data-toggle="dropdown" href="#">Accepted <span class="caret"></span></a>
|
||||||
{% if proposal.result.get_accepted_display == "rejected" %}
|
<ul class="dropdown-menu pull-right">
|
||||||
<input type="submit" name="result_submit" value="accept" class="btn btn-success" />
|
<li><input type="submit" name="result_submit" value="reject" class="btn btn-danger" /></li>
|
||||||
<input type="submit" name="result_submit" value="undecide" class="btn" />
|
<li><input type="submit" name="result_submit" value="undecide" class="btn" /></li>
|
||||||
{% else %}
|
</ul>
|
||||||
<input type="submit" name="result_submit" value="accept" class="btn btn-success" />
|
{% else %}
|
||||||
<input type="submit" name="result_submit" value="reject" class="btn btn-danger" />
|
{% if proposal.result.get_accepted_display == "rejected" %}
|
||||||
{% endif %}
|
<a class="btn dropdown-toggle btn-danger" data-toggle="dropdown" href="#">Rejected <span class="caret"></span></a>
|
||||||
{% endif %}
|
<ul class="dropdown-menu pull-right">
|
||||||
</form>
|
<li><input type="submit" name="result_submit" value="accept" class="btn btn-success" /></li>
|
||||||
</div>
|
<li><input type="submit" name="result_submit" value="undecide" class="btn" /></li>
|
||||||
|
</ul>
|
||||||
|
{% else %}
|
||||||
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Undecided <span class="caret"></span></a>
|
||||||
|
<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 %}
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</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