Added confirmed check

master
Davide Bongiovanni 7 years ago
parent f2c0b8c9c0
commit 65fcd3a6be

@ -9,3 +9,11 @@ function addme() {
function removeme() { function removeme() {
} }
function confirm() {
}
function bail() {
}

@ -111,9 +111,9 @@ h2 {
.rect-button { .rect-button {
width: 100pt; width: 100pt;
height: 25pt; height: 25pt;
background: #EE7500; background-color: #EE7500;
position: relative; position: relative;
color: #F1EDEA; color: white;
left: 220pt; left: 220pt;
margin-top: 3pt; margin-top: 3pt;
cursor: pointer; cursor: pointer;
@ -127,7 +127,7 @@ h2 {
left: 0; left: 0;
width: 100%; width: 100%;
text-align: center; text-align: center;
color: #EAEAEA; color: white;
} }
.add-button { .add-button {
@ -137,9 +137,9 @@ h2 {
top: 50%; top: 50%;
left: 40pt; left: 40pt;
margin-top: -25pt; margin-top: -25pt;
color: #F1EDEA; color: white;
border-radius: 25pt; border-radius: 25pt;
background: #EE7500; background-color: #EE7500;
cursor: pointer; cursor: pointer;
} }
@ -191,9 +191,9 @@ h2 {
.logout-button { .logout-button {
width: 90pt; width: 90pt;
height: 25pt; height: 25pt;
background: #EE7500; background-color: #EE7500;
position: absolute; position: absolute;
color: #F1EDEA; color: white;
left: 75pt; left: 75pt;
top: 70%; top: 70%;
margin-top: -13pt; margin-top: -13pt;
@ -208,5 +208,5 @@ h2 {
left: 0; left: 0;
width: 100%; width: 100%;
text-align: center; text-align: center;
color: #EAEAEA; color: white;
} }

@ -35,8 +35,12 @@
<img src="{{url_for('static', filename=cook.name + '.png')}}"> <img src="{{url_for('static', filename=cook.name + '.png')}}">
<span>{{ cook.name }}</span> <span>{{ cook.name }}</span>
{% if cook.name == current_user.name %} {% if cook.name == current_user.name %}
<div class="rect-button"><span>CONFIRM</span></div> {% if cook.confirmed == "no" %}
<div class="rect-button"><span>BAIL</span></div> <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 %} {% endif %}
</div> </div>
<h2>Eaters</h2> <h2>Eaters</h2>

@ -48,7 +48,10 @@ wille['name'] = 'Wille'
wille['score'] = -15 wille['score'] = -15
leaderboard.append(wille) leaderboard.append(wille)
cook = davide c_davide = {}
c_davide['name'] = 'Davide'
c_davide['confirmed'] = 'yes'
cook = c_davide
eaters = ["Pawel", "Mark", "Sven"] eaters = ["Pawel", "Mark", "Sven"]
# flask-login # flask-login

Loading…
Cancel
Save