Skip to content

Instantly share code, notes, and snippets.

@raygesualdo
Created September 5, 2014 17:18
Show Gist options
  • Select an option

  • Save raygesualdo/7d4e596253d9ed1344a3 to your computer and use it in GitHub Desktop.

Select an option

Save raygesualdo/7d4e596253d9ed1344a3 to your computer and use it in GitHub Desktop.
###########################################################################################
#
# Intake Formset
#
###########################################################################################
submission_save_path: _forms/intake/
filename_format: "{{ slug }}-{{ year }}{{ month }}{{ day }}-{{ hour }}{{ minute }}-{{ second }}"
submission_save_extension: yaml
allowed:
- slug
- title
- description
- firstname
- lastname
- contactemail
- location_images
- address1
- address2
- city
- state
- zip
- website
- phone
- hours
- discounts
- specials
- events
- socialmedia
required:
- slug
- title
- firstname
- lastname
- contactemail
- address1
- city
- state
- zip
validate:
slug: notEmpty
title: notEmpty
address1: notEmpty
city: alpha
state: uppercase
zip: digit
hours: notEmpty
messages:
title: "The business name you provided is invalid."
send_notification_email: true
email:
to: "{{ contactemail }}"
from: [email protected]
subject: "Congratulations!"
html_template: email/intake-receipt
email:
to: [email protected]
from: [email protected]
subject: "Intake Form Submission: {{ title }}"
html_template: email/intake-admin
datestamp_format: "m/d/Y"
# RUR Settings
rur_is_enabled: true
rur_to_rename: location_images
rur_upload_dest: _forms/intake/renamed/
rur_filename_format: "{{slug}}/image-{{ key }}"
@jackmcdade
Copy link

You'll need to list them under a single email:

email:
  -
    to: "{{ contactemail }}"
    from: [email protected]
    subject: "Congratulations!" 
    html_template: email/intake-receipt
  -
    to: [email protected]
    from: [email protected]
    subject: "Intake Form Submission: {{ title }}" 
    html_template: email/intake-admin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment