More consistent color-coding for talk status buttons

- there's no btn-default, switch that to btn-primary
 - consistently use info for standby, primary for undecided, success
   for accept and warn for rejected
This commit is contained in:
James Polley 2018-01-04 22:49:11 +11:00
parent 2465f2645e
commit 79743b711d

View file

@ -22,8 +22,8 @@
<div class="dropdown-menu pull-right"> <div class="dropdown-menu pull-right">
<div class="btn-group"> <div class="btn-group">
<input type="submit" name="result_submit" value="reject" class="btn btn-xs btn-danger" /> <input type="submit" name="result_submit" value="reject" class="btn btn-xs btn-danger" />
<input type="submit" name="result_submit" value="standby" class="btn btn-xs" /> <input type="submit" name="result_submit" value="standby" class="btn btn-info btn-xs" />
<input type="submit" name="result_submit" value="undecide" class="btn btn-default btn-xs" /> <input type="submit" name="result_submit" value="undecide" class="btn btn-primary btn-xs" />
</div> </div>
</div> </div>
<input type="submit" name="publish_changes" value="Publish Changes" class="btn btn-success" /> <input type="submit" name="publish_changes" value="Publish Changes" class="btn btn-success" />
@ -33,27 +33,27 @@
<div class="dropdown-menu pull-right"> <div class="dropdown-menu pull-right">
<div class="btn-group"> <div class="btn-group">
<input type="submit" name="result_submit" value="accept" class="btn btn-xs btn-success" /> <input type="submit" name="result_submit" value="accept" class="btn btn-xs btn-success" />
<input type="submit" name="result_submit" value="standby" class="btn btn-xs" /> <input type="submit" name="result_submit" value="standby" class="btn btn-info btn-xs" />
<input type="submit" name="result_submit" value="undecide" class="btn btn-default btn-xs" /> <input type="submit" name="result_submit" value="undecide" class="btn btn-default btn-xs" />
</div> </div>
</div> </div>
{% else %} {% else %}
{% if proposal.result.status == "standby" %} {% if proposal.result.status == "standby" %}
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Standby <span class="caret"></span></a> <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#">Standby <span class="caret"></span></a>
<div class="dropdown-menu pull-right"> <div class="dropdown-menu pull-right">
<div class="btn-group"> <div class="btn-group">
<input type="submit" name="result_submit" value="accept" class="btn btn-xs btn-success" /> <input type="submit" name="result_submit" value="accept" class="btn btn-xs btn-success" />
<input type="submit" name="result_submit" value="reject" class="btn btn-xs btn-danger" /> <input type="submit" name="result_submit" value="reject" class="btn btn-xs btn-danger" />
<input type="submit" name="result_submit" value="undecide" class="btn btn-default btn-xs" /> <input type="submit" name="result_submit" value="undecide" class="btn btn-primary btn-xs" />
</div> </div>
</div> </div>
{% else %} {% else %}
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Undecided <span class="caret"></span></a> <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">Undecided <span class="caret"></span></a>
<div class="dropdown-menu pull-right"> <div class="dropdown-menu pull-right">
<div class="btn-group"> <div class="btn-group">
<input type="submit" name="result_submit" value="accept" class="btn btn-xs btn-success" /> <input type="submit" name="result_submit" value="accept" class="btn btn-xs btn-success" />
<input type="submit" name="result_submit" value="reject" class="btn btn-xs btn-danger" /> <input type="submit" name="result_submit" value="reject" class="btn btn-xs btn-danger" />
<input type="submit" name="result_submit" value="standby" class="btn btn-default btn-xs" /> <input type="submit" name="result_submit" value="standby" class="btn btn-info btn-xs" />
</div> </div>
</div> </div>
{% endif %} {% endif %}