Signal rejections and standby talks.

Go green for Accepted

Go Red for Rejected

Go yellow for Standby
This commit is contained in:
Sachi King 2017-04-23 18:33:18 +10:00
parent dfd1da01be
commit 895cab2c1c

View file

@ -1,5 +1,13 @@
<div class="col-xs-12 col-sm-6 col-lg-6">
<div class="panel panel-primary"> <!-- Todo Make the colour relate to status of acceptance -->
{% if proposal.result.status == "accepted" %}
<div class="panel panel-success">
{% elif proposal.result.status == "rejected" %}
<div class="panel panel-danger">
{% elif proposal.result.status == "standby" %}
<div class="panel panel-warning">
{% else %}
<div class="panel panel-primary">
{% endif %}
<div class="panel-heading">
<h5>{{ proposal.title }}</h5>
</div>
@ -14,6 +22,10 @@
{% if request.user == proposal.speaker.user %}
{% if proposal.result.status == "accepted" %}
<span class="label label-success">Accepted</span>
{% elif proposal.result.status == "rejected" %}
<span class="label label-danger">Rejected</span>
{% elif proposal.result.status == "standby" %}
<span class="label label-warning">Standby</span>
{% else %}
<span class="label label-default">Submitted</span>
{% endif %}