Feat: Apply for Founding Partner Program page hookup fixed and hooked up to rest of app through Home page.
This commit is contained in:
@@ -63,24 +63,24 @@ def apply_founding_partner_post():
|
||||
form = Form_Apply_Founding_Partner()
|
||||
if form.validate_on_submit():
|
||||
try:
|
||||
id_apply_founding_partner_form = form.id_apply_founding_partner_form.data
|
||||
# id_apply_founding_partner_form = form.id_apply_founding_partner_form.data
|
||||
contact_name = form.contact_name.data
|
||||
email = form.email.data
|
||||
phone_number = form.phone_number.data
|
||||
name_company = form.name_company.data
|
||||
company_name = form.company_name.data
|
||||
website = form.website.data
|
||||
# most_valuable_feature = form.most_valuable_feature.data
|
||||
notes = form.notes.data
|
||||
active = True
|
||||
|
||||
receive_marketing_text = "I would like to receive marketing emails.\n" if receive_marketing else ""
|
||||
# receive_marketing_text = "I would like to receive marketing emails.\n" if receive_marketing else ""
|
||||
# send email
|
||||
mailItem = Message("Fetch Metrics Website Founding Partner Application", recipients=[current_app.config['MAIL_APPLY_FOUNDING_PARTNER_PUBLIC']])
|
||||
mailItem = Message("Fetch Metrics Website Founding Partner Application", recipients=[current_app.config['MAIL_CONTACT_PUBLIC']])
|
||||
mailItem.body = '\n'.join([
|
||||
"Dear Lord Edward Middleton-Smith"
|
||||
, ""
|
||||
, "I would like to be part of your Founding Partner Program."
|
||||
, f"I currently work with {dog_count} dogs"
|
||||
# , f"I currently work with {dog_count} dogs"
|
||||
# , f"I most desire the feature: {most_valuable_feature}"
|
||||
, f"Notes: {notes}"
|
||||
, ""
|
||||
@@ -97,7 +97,7 @@ def apply_founding_partner_post():
|
||||
datastore = DataStore_Project_Hub_Contact_Form()
|
||||
apply_founding_partner_form = Apply_Founding_Partner_Form.from_json(form.to_json())
|
||||
datastore.save_apply_founding_partner_forms(
|
||||
comment = apply_founding_partner_form.message
|
||||
comment = notes
|
||||
, apply_founding_partner_forms = [apply_founding_partner_form]
|
||||
)
|
||||
return redirect(url_for(Model_View_Apply_Founding_Partner.ENDPOINT_PAGE_APPLY_FOUNDING_PARTNER_SUCCESS))
|
||||
|
||||
Reference in New Issue
Block a user