Added confirmed check

This commit is contained in:
2017-10-08 17:40:53 +02:00
parent f2c0b8c9c0
commit 65fcd3a6be
4 changed files with 26 additions and 11 deletions
+6 -2
View File
@@ -35,8 +35,12 @@
<img src="{{url_for('static', filename=cook.name + '.png')}}">
<span>{{ cook.name }}</span>
{% if cook.name == current_user.name %}
<div class="rect-button"><span>CONFIRM</span></div>
<div class="rect-button"><span>BAIL</span></div>
{% if cook.confirmed == "no" %}
<div class="rect-button" onclick="confirm()"><span>CONFIRM</span></div>
<div class="rect-button" onclick="bail()"><span>BAIL</span></div>
{% else %}
<div class="rect-button" style="background-color: #8faf38"><span>CONFIRMED</span></div>
{% endif %}
{% endif %}
</div>
<h2>Eaters</h2>