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
+8
View File
@@ -9,3 +9,11 @@ function addme() {
function removeme() {
}
function confirm() {
}
function bail() {
}
+8 -8
View File
@@ -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;
}
+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>
+4 -1
View File
@@ -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