Added confirmed check

master
Davide Bongiovanni 7 years ago
parent f2c0b8c9c0
commit 65fcd3a6be

@ -8,4 +8,12 @@ function addme() {
function removeme() {
}
function confirm() {
}
function bail() {
}

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

@ -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>

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

Loading…
Cancel
Save