Initial commit

This commit is contained in:
2023-09-10 13:04:17 -04:00
commit a0498a3774
72 changed files with 1230 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
# Pages
Blueprints for /forms routes
## Routes
- Meet and Greet

View 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

View 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")