Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedja24-meet committed Aug 2, 2023
1 parent c282046 commit a7b68ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions case-study-skeleton/designApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def contact():
}
# db.child('feedback').push(feedback_data)

db.child("Users").child(username).set(feedback_data)
info = db.child("Users").child(username).get().val()
db.child("users").child(username).set(feedback_data)
info = db.child("users").child(username).get().val()
n = info['name']
return render_template('contact.html', b = True, name = n)
return render_template('contact.html', b = False)
Expand Down
11 changes: 9 additions & 2 deletions case-study-skeleton/templates/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<label for="email">Email</label>
</div>
<div class="group">
<textarea placeholder="" id="comment" name="comment" rows="5" required=""></textarea>
<input placeholder="" id="comment" name="comment" rows="5" required=""></textarea>
<label for="comment">Comment</label>
</div>
<button type="submit" value="submit_feedback">Submit</button>
Expand All @@ -48,11 +48,18 @@
</div>
</div>
<br>
<div>
<div class="thankyou">
{% if b %}
<p>thank you {{name}}!</p>
{% endif %}

</div>
<style type="text/css">
.thankyou{
position: =absolute;
top:10%;
left: 50%;
}
</style>
</body>
</html>

0 comments on commit a7b68ee

Please sign in to comment.