Skip to content

Commit 35edbbb

Browse files
committed
Final Tested Update
1 parent 8eef2a2 commit 35edbbb

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

app.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def visitor_send_email(a,b,c,d,e,f):
5656
#t = time.localtime()
5757
#current_time = time.strftime("%H:%M:%S", t)
5858
# message to be sent
59-
text = "Thank you Visitor for visiting us,\n Visitor Name:\t"+ a +"\n Visitor Phone:\t"+ c +"\n Check-in Time:\t"+ d+"IST"+"\n Check-out Time:\t"+ e +"\n Host Name:\t"+ f + "\n Address visited : Summergeeks by innovaccer"
60-
subject = "Visitor has just checked in"
59+
text = "Thank you Visitor for visiting us,\n Visitor Name:\t"+ a +"\n Visitor Phone:\t"+ c +"\n Check-in Time:\t"+ d+"IST"+"\n Check-out Time:\t"+ e +"\n Host Name:\t"+ f + "\nAddress : Summergeeks by innovaccer"
60+
subject = "Thank you Visiting us"
6161
message = 'Subject: {}\n\n{}'.format(subject, text)
6262
# sending the mail
6363
s.sendmail("innovaccersummergeeks@gmail.com", b, message)
@@ -85,6 +85,7 @@ def sendSMS(apikey, numbers, sender, message):
8585

8686

8787
@app.route("/")
88+
@app.route("/index",methods=["GET","POST"])
8889
def index():
8990
return render_template("index.html")
9091

database.db

0 Bytes
Binary file not shown.

templates/host.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</div>
4949
<div class="wrap-input100 validate-input" data-validate = "Phone Number is required">
5050
<span class="label-input100">Phone Number</span>
51-
<input class="input100" type="text" name="phonenumber" placeholder="E.g +919149189644">
51+
<input class="input100" type="text" name="phonenumber" placeholder="E.g 919149189644">
5252
<span class="focus-input100"></span>
5353
</div>
5454

templates/hostthank.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<div class="container-contact100">
3232
<div class="wrap-contact100">
33-
<form class="contact100-form validate-form">
33+
<form class="contact100-form validate-form" action="index" method="POST">
3434
<span class="contact100-form-title">
3535
Thank You Host!
3636
</span>
@@ -40,7 +40,7 @@
4040
<div class="container-contact100-form-btn">
4141
<div class="wrap-contact100-form-btn">
4242
<div class="contact100-form-bgbtn"></div>
43-
<button class="contact100-form-btn" onclick="goBack()">
43+
<button class="contact100-form-btn" type="submit">>
4444
<span>
4545
Back to home
4646
<i class="fa fa-long-arrow-right m-l-7" aria-hidden="true"></i>
@@ -56,11 +56,11 @@
5656

5757
<div id="dropDownSelect1"></div>
5858

59-
59+
<!--
6060
<script>
6161
function goBack() {
6262
window.history.back();
63-
}
63+
}-->
6464
</script>
6565
<!--===============================================================================================-->
6666
<script src="../static/host/vendor/jquery/jquery-3.2.1.min.js"></script>

0 commit comments

Comments
 (0)