Initial commit
This commit is contained in:
9
all_paw_care/forms/README.md
Normal file
9
all_paw_care/forms/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Pages
|
||||
|
||||
Blueprints for /forms routes
|
||||
|
||||
## Routes
|
||||
|
||||
- Meet and Greet
|
||||
|
||||
|
||||
7
all_paw_care/forms/__init__.py
Normal file
7
all_paw_care/forms/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from flask import Blueprint
|
||||
|
||||
forms = Blueprint('forms', __name__, url_prefix='/forms')
|
||||
|
||||
# place here, else circular import errors
|
||||
from all_paw_care.forms import routes
|
||||
|
||||
17
all_paw_care/forms/routes.py
Normal file
17
all_paw_care/forms/routes.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from all_paw_care.send_mail import SendMail
|
||||
from all_paw_care.forms import forms
|
||||
|
||||
from flask import render_template,request
|
||||
|
||||
@forms.route('/meet_and_greet', methods=['GET', 'POST'])
|
||||
def meet_and_greet():
|
||||
if request.method == 'POST':
|
||||
send_client = SendMail()
|
||||
send_client.send_meet_and_greet_request(request.form['client-name'],
|
||||
request.form['client-pets'],request.form['visit-type'],
|
||||
request.form['meet-greet-date'],request.form['meet-greet-time'],
|
||||
request.form['contact-type'],request.form['contact'],
|
||||
request.form['notes'])
|
||||
|
||||
return render_template("forms/meet-and-greet.html")
|
||||
|
||||
Reference in New Issue
Block a user