{
  "production": {
    "site_url": "https://register.flocktofedora.org",
    "theming": {
      "theme": "fedora",
      "site_name": "Flock 2017 Registration",
      "event_name": "Flock 2017",
      "logo": "",
      "event_location": "Hyannis, Cape Cod"
    },
    "secret": "{{ regcfp_secret }}",
    "database": {
      "dialect": "postgres",
      "database": "regcfp",
      "username": "regcfp",
      "password": "{{ regcfp_db_pass }}",
      "define": {
        "paranoid": true
      }
    },

    "email": {
      "from": "flock-staff@fedoraproject.org",
      "transport": {
        "host": "localhost",
        "port": 25,
        "secure": false
      }
    },

    "listen": {
      "http": {
        "enabled": true,
        "listenip": "0.0.0.0",
        "port": 80
      },
      "https": {
        "enabled": true,
        "only": false,
        "url": "https://register.flocktofedora.org",
        "listenip": "0.0.0.0",
        "port": 443,
        "cert": "/etc/pki/tls/certs/flocktofedora.org.cert",
        "ca": "/etc/pki/tls/certs/flocktofedora.org.intermediate.cert",
        "key": "/etc/pki/tls/private/flocktofedora.org.key"
      }
    },

    "auth": {
      "module": "openid",
      "openid_connect_providers": {
        "fedora": {
          "discovery_url": "https://id.fedoraproject.org/openidc/.well-known/openid-configuration",
          "email_domain": "fedoraproject.org",
          "client_id": "regcfp",
          "client_secret": "{{ regcfp_openidc_secret}}"
        }
      }
    },

    "permissions": {
      "admin": ["puiterwijk@fedoraproject.org", "pfrields@fedoraproject.org", "duffy@fedoraproject.org", "robyduck@fedoraproject.org", "mattdm@fedoraproject.org", "bex@fedoraproject.org", "nb@fedoraproject.org", "mitzie@fedoraproject.org", "cprofitt@fedoraproject.org"],
      "papers": {
        "submit": [],
        "list": {
          "accepted": ["bex@fedoraproject.org", "duffy@fedoraproject.org", "pfrields@fedoraproject.org", "mitzie@fedoraproject.org"],
          "own": ["*authenticated*"],
          "all": ["pfrields@fedoraproject.org", "duffy@fedoraproject.org", "mattdm@fedoraproject.org", "robyduck@fedoraproject.org", "bex@fedoraproject.org", "cprofitt@fedoraproject.org", "nb@fedoraproject.org", "mitzie@fedoraproject.org"]
        },
        "edit": {
          "own": [],
          "all": ["pfrields@fedoraproject.org", "bex@fedoraproject.org", "duffy@fedoraproject.org"]
        },
        "delete": {
          "own": [],
          "all": ["pfrields@fedoraproject.org", "duffy@fedoraproject.org", "bex@fedoraproject.org"]
        },
        "tag": ["*authenticated*"],
        "vote": ["duffy@fedoraproject.org", "mattdm@fedoraproject.org", "pfrields@fedoraproject.org", "bex@fedoraproject.org", "cprofitt@fedoraproject.org", "robyduck@fedoraproject.org", "nb@fedoraproject.org"],
        "showvotes": ["duffy@fedoraproject.org", "mattdm@fedoraproject.org", "pfrields@fedoraproject.org", "bex@fedoraproject.org", "cprofitt@fedoraproject.org", "robyduck@fedoraproject.org", "nb@fedoraproject.org"],
        "accept": ["pfrields@fedoraproject.org", "bex@fedoraproject.org", "duffy@fedoraproject.org"]
      },
      "registration": {
        "register": [],
        "pay": [],
        "request_receipt": [],
        "view_public": [],
        "view_all": ["bex@fedoraproject.org", "duffy@fedoraproject.org"],
        "view_payment": ["bex@fedoraproject.org", "duffy@fedoraproject.org"],
        "add_payment": [],
        "print_badge": [],
        "desk": [],
        "cancel": [],
        "cancel_all": []
      }
    },

    "papers": {
      "enabled": true,
      "tracks": [
	"Talk (30 min)",
	"Talk (60 min)",
	"Do-Session (120 min)",
	"Do-Session (180 min)"
      ]
    },


    "registration": {
      "enabled": true,
      "fields": {
        "reglegend": {
          "type": "legend",
          "display_name": "Registration Fee",
          "split": 0
        },
        "doc1": {
          "type": "documentation",
          "display_name": "",
          "html": [
            "The registration fee below is determined by your current country selection. ",
            "This is in order to keep the fee fair and nominal across all regions. ",
            "If your country isn't listed, please choose a country or region with a similar economic situation."
          ],
          "split": 0
        },
        "country": {
          "display_name": "Country",
	  "short_display_name": "Ctr",
          "type": "select",
          "required": true,
          "message" : "Choose a region with a similar economic situation if your country is not listed.",
          "privmsg": "This will be kept private.",
          "private": true,
          "placeholder": "Country of origin",
          "options": [
            "Argentina",
            "Australia",
            "Brazil",
            "Britain",
            "Canada",
            "Chile",
            "China",
            "Colombia",
            "Costa Rica",
            "Czech Republic",
            "Denmark",
            "Egypt",
            "Euro area",
            "Hong Kong",
            "Hungary",
            "India",
            "Indonesia",
            "Israel",
            "Japan",
            "Malaysia",
            "Mexico",
            "New Zealand",
            "Norway",
            "Pakistan",
            "Peru",
            "Philippines",
            "Poland",
            "Russia",
            "Saudi Arabia",
            "Singapore",
            "South Africa",
            "South Korea",
            "Sri Lanka",
            "Sweden",
            "Switzerland",
            "Taiwan",
            "Thailand",
            "Turkey",
            "UAE",
            "Ukraine",
            "United States",
            "Uruguay",
            "Venezuela",
            "Vietnam",
            "Austria",
            "Belgium",
            "Estonia",
            "Finland",
            "France",
            "Germany",
            "Greece",
            "Ireland",
            "Italy",
            "Netherlands",
            "Portugal",
            "Spain"
          ],
          "onchange": "javascript:update_regfee(); javascript:update_estimates();",
          "split": 0
        },
        "regfee": {
          "display_name": "Registration Fee in USD $",
          "type": "string",
          "required": false,
          "private": true,
          "placeholder": "25.00",
          "readonly": false,
          "split": 0,
          "message": "All amounts are in US dollars.",
          "onchange": "javascript:update_estimates();"
        },
        "reason": {
          "display_name": "Why are you interested in attending Flock?",
          "type": "textarea",
          "required": true,
          "private": true,
          "split": 0
        },
        "soclegend": {
          "type": "legend",
          "display_name": "Social Details",
          "split": 1
        },

        "ircnick": {
          "display_name": "IRC Nickname",
	  "short_display_name": "IRC",
          "type": "string",
          "required": false,
          "private": false,
          "placeholder": "IRC Nickname",
          "split": 1
        },
	"badgeextra": {
	    "display_name": "Extra line for badges (if available)",
	    "short_display_name": "Badge",
	    "type": "string",
	    "required": false,
	    "private": false,
	    "placeholder": "",
            "split": 1
	},
        "reqslegend": {
          "type": "legend",
          "display_name": "Personal Requirements",
          "split": 1
        },

	"veg": {
	  "display_name": "Vegetarian",
	  "short_display_name": "Veg",
	  "type": "select",
	  "required": true,
          "message": "This does not guarantee availability of vegetarian options.",
          "privmsg": "This will be kept private.",
          "private": true,
	  "placeholder": "",
	  "options": [
	    "No", "Yes"
	  ],
          "split": 1
	},
	"dietary": {
	  "display_name": "Medical dietary restrictions",
	  "short_display_name": "Diet",
	  "type": "string",
	  "required": false,
          "message": "No guarantees are made here, but we will do our best!",
          "privmsg": "This will be kept private.",
	  "private": true,
	  "placeholder": "",
          "split": 1
	},
	"inviteletter": {
	    "display_name": "Do you need an invitation letter to attend?",
	    "short_display_name": "Inv",
	    "type": "select",
	    "required": true,
	    "private": false,
	    "placeholder": "",
	    "options": [
		    "No", "Yes"
	    ],
            "split": 1
	},
        "shirtsize": {
          "display_name": "T-shirt size",
	  "short_display_name": "Sz",
          "type": "select",
          "message": "This will be kept private.",
          "required": false,
          "private": true,
          "placeholder": "",
          "options": [
	    "No shirt",
            "Mens XS",
            "Mens S",
            "Mens M",
            "Mens L",
            "Mens XL",
	    "Mens XXL",
	    "Mens 3XL",
	    "Ladies S",
	    "Ladies M",
	    "Ladies L",
	    "Ladies XL"
          ],
          "split": 1
        },
	"assistlegend": {
          "type": "legend",
          "display_name": "Financial Assistance",
          "split": 2
        },

	"needassistance": {
	    "display_name": "Do you need financial assistance in order to attend Flock?",
	    "short_display_name": "Sub",
	    "type": "radio",
	    "required": true,
	    "private": true,
            "onchange": "javascript:update_regfee(); javascript:update_estimates();",
            "options": [
              "No, I / my employer can cover my expenses.",
              "Yes, my attendance requires financial assistance."
             ],
            "split": 2
	},

        "sponsor_additional": {
          "display_name": "Would you like to help sponsor a Fedora volunteer's attendance?",
          "short_display_name": "Spon",
          "type": "radio",
          "required": false,
          "private": true,
          "shownifkey": "needassistance",
          "shownifval": "No, I / my employer can cover my expenses.",
          "options": [
            "No, thank you.",
            "Yes, I will sponsor the amount that follows."
          ],
          "split": 2
        },
        "sponsor_additional_amount": {
          "display_name": "Amount",
          "short_display_name": "SponAmnt",
          "type": "string",
          "required": false,
          "private": true,
          "shownifkey": "sponsor_additional",
          "shownifval": "Yes, I will sponsor the amount that follows.",
          "split": 2
        },
	"circumlegend": {
          "type": "legend",
          "display_name": "Special Travel Circumstances",
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "split": 2
        },
        "travel_circumstances": {
          "display_name": "If there are any special circumstances or logistics regarding your travel and/or funding for Flock, please note them here.",
          "short_display_name": "travel_circum",
          "type": "textarea",
          "required": false,
          "private": true,
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "split": 2
        },
	"flightlegend": {
          "type": "legend",
          "display_name": "Flights",
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "split": 2
        },
        "flights_needed": {
          "display_name": "My trip to flock requires air travel",
          "type": "radio",
          "required": false,
          "private": true,
          "onchange": "javascript:update_regfee(); javascript:update_estimates();",
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "options": [
            "My trip to Flock requires air travel.",
            "My trip to Flock does not require air travel."
          ],
          "split": 2
        },
        "doc_flights": {
          "display_name": "",
          "type": "documentation",
          "html": [
            "<table class='calendar'>",
            "<tr>",
            "<th>Sat</th><th>Sun</th><th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th><th>Fri</th><th>Sat</th><th>Sun</th>",
            "</tr>",
            "<tr class='flock'>",
            "<td></td><td></td><td></td><td class='flock' colspan='4'>Flock</td><td></td><td></td>",
            "</tr>",
            "<tr>",
            "<td>Aug <span>26</span></td><td>Aug <span>27</span></td><td>Aug <span>28</span></td>",
            "<td class='flock'>Aug <span>29</span></td><td class='flock'>Aug <span>30</span></td>",
            "<td class='flock'>Aug <span>31</span></td><td class='flock'>Sep <span>01</span></td>",
            "<td>Sep <span>02</span></td><td>Sep <span>03</span></td>",
            "</tr>",
            "<tr class='bus-notes'>",
            "<th colspan='5'>",
            "<p>First bus departs Logan Airport at <strong>6:15 AM</strong>.</p>",
            "<p>Last bus departs Logan Airport at <strong>11:15 PM</strong>.</p>",
            "</th>",
            "<th colspan='4'>",
            "<p>First bus arrives at Logan at <strong>4:30 AM</strong>.</p>",
            "<p>Last bus arrives at Logan at <strong>10:30 PM</strong>.</p>",
            "</th>",
            "</tr>",
            "</table>"
         ],
          "shownifkey": "flights_needed",
          "shownifval": "My trip to Flock requires air travel.",
          "split": 2
        },
        "doc_research": {
          "type": "documentation",
          "display_name": "",
          "html": [
            "<p>Please research round trip flights to Boston's Logan Airport for Flock. Note that there is a 2-hour long",
            " bus ride from the airport to the conference site; we have provided a rough schedule of this bus above but ",
            "<a href='http://www.p-b.com/Sched-Logan.html'>please verify the schedule</a>, particularly if you plan to ",
            "ride on a weekend as the schedule may vary based on what we've posted above.</p>",
            "<p>Plan to arrive in Hyannis, MA by the evening of Monday, August 28 and depart no sooner than 2 PM on Friday, ",
            "keeping the bus times and schedule in account."
          ],
          "shownifkey": "flights_needed",
          "shownifval": "My trip to Flock requires air travel.",
          "split": 2
        },

        "flight_homeairport": {
          "display_name": "Preferred home airport codes",
          "type": "string",
          "required": false,
          "private": true,
          "shownifkey": "flights_needed",
          "shownifval": "My trip to Flock requires air travel.",
          "message": "Ex. 'PRG', 'BRQ'",
          "split": 2
        },
        "flight_price": {
          "display_name": "Estimated round-trip airfare (in USD)",
          "type": "string",
          "required": false,
          "private": true,
          "shownifkey": "flights_needed",
          "shownifval": "My trip to Flock requires air travel.",
          "message": "Please provide the amount in US dollars.",
          "onchange": "javascript:update_estimates();",
          "split": 2
        },
        "doc_research2": {
          "type": "documentation",
          "display_name": "",
          "shownifkey": "flights_needed",
          "shownifval": "My trip to Flock requires air travel.",
          "html": [
            "<p>Please make your best guess on your estimated airfare cost based on your research. If you underestimate, ",
            "there may not be enough funding for your trip; if you overestimate, other attendees may not receive funding. ",
            "We rely on the honesty and integrity of our community members to fill this form out accurately."
          ],
          "split": 2
        },

 
	"othertransitlegend": {
          "type": "legend",
          "display_name": "Other Transit Costs",
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "split": 2
        },
        "busservice": {
          "display_name": "Do you intend to use the Cape Cod bus service from Boston's Logan Airport?",
          "type": "radio",
          "required": false,
          "private": true,
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "options": [
            "Yes (+ $47 / roundtrip)",
            "No"
          ],
          "onchange": "javascript:update_estimates();",
          "split": 2
        },
        "other_transit": {
          "display_name": "Please describe any other transit-related costs you anticipate",
          "type": "textarea",
          "required": false,
          "private": true,
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "split": 2
        },
        "total_othertransit": {
          "display_name": "Total cost of other estimated transit costs",
          "type": "string",
          "required": false,
          "private": true,
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "message": "Please provide the amount in US dollars.",
          "onchange": "javascript:update_estimates();",
          "split": 2
        },
	"lodginglegend": {
          "type": "legend",
          "display_name": "Lodging",
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "split": 2
        },

        "lodging_needed": {
          "display_name": "I would like lodging to be part of my travel funding request",
          "type": "radio",
          "required": false,
          "private": true,
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "options": [
            "I would like lodging to be part of my travel funding request.",
            "I will make my own arrangements for lodging."
          ],
          "onchange": "javascript:update_estimates();",
          "split": 2
        },
        "lodging_calendar": {
          "display_name": "",
          "type": "documentation",
          "html": [
            "<table class='calendar'>",
            "<tr>",
            "<th>Sat</th><th>Sun</th><th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th><th>Fri</th><th>Sat</th><th>Sun</th>",
            "</tr>",
            "<tr class='flock'>",
            "<td></td><td></td><td></td><td class='flock' colspan='4'>Flock</td><td></td><td></td>",
            "</tr>",
            "<tr>",
            "<td>Aug <span>26</span></td><td>Aug <span>27</span></td><td>Aug <span>28</span></td>",
            "<td class='flock'>Aug <span>29</span></td><td class='flock'>Aug <span>30</span></td>",
            "<td class='flock'>Aug <span>31</span></td><td class='flock'>Sep <span>01</span></td>",
            "<td>Sep <span>02</span></td><td>Sep <span>03</span></td>",
            "</tr>",
            "<tr class='bus-notes'>",
            "<th colspan='5'>",
            "<p>First bus departs Logan Airport at <strong>6:15 AM</strong>.</p>",
            "<p>Last bus departs Logan Airport at <strong>11:15 PM</strong>.</p>",
            "</th>",
            "<th colspan='4'>",
            "<p>First bus arrives at Logan at <strong>4:30 AM</strong>.</p>",
            "<p>Last bus arrives at Logan at <strong>10:30 PM</strong>.</p>",
            "</th>",
            "</tr>",
            "</table>"
          ],
          "shownifkey": "lodging_needed",
          "shownifval": "I would like lodging to be part of my travel funding request.",
          "split": 2
        },
        "doc_lodging": {
          "type": "documentation",
          "display_name": "",
          "shownifkey": "lodging_needed",
          "shownifval": "I would like lodging to be part of my travel funding request.",
          "html": [
            "<p>Please indicate below how many nights' lodging you anticipate needing based on your above travel estimate.</p>",
            "<p><strong>Note:</strong> We will fund up to <strong>four nights' stay</strong> for funded Flock attendees ",
            "traveling <strong>domestically</strong>, and <strong>five nights' stay</strong> for <strong>international</strong>",
            "travellers, with the exception of travel-related additional lodging requirements.</p>",
            "<p>All funded attendees will share a double room with an attendee of the same gender. You may request an ",
            "exception to this policy by emailing <a href='mail:flock-staff@fedoraproject.org'>flock-staff@fedoraproject.org</a>, ",
            "which is a private address for Flock organizers."
          ],
          "split": 2
        },
        "lodging_nights": {
          "display_name": "How many nights of lodging will you require to attend Flock?",
          "type": "select",
          "options": [
            "1 night",
            "2 nights",
            "3 nights",
            "4 nights",
            "5 nights",
            "other"
          ],
          "required": false,
          "private": true,
          "shownifkey": "lodging_needed",
          "shownifval": "I would like lodging to be part of my travel funding request.",
          "onchange": "javascript:update_estimates();",
          "split": 2
        },
        "lodging_roommate": {
          "display_name": "Do you have a preferred roommate?",
          "type": "string",
          "required": false,
          "private": true,
          "shownifkey": "lodging_needed",
          "shownifval": "I would like lodging to be part of my travel funding request.",
          "message": "Provide name or FAS ID of a mutually-agreed upon roommate.",
          "split": 2
        },

        "doc_estimated_cost": {
          "type": "documentation",
          "display_name": "",
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "html": [
            "<h3>Estimated costs for funding request</h3>",
            "<table class='estimates'><tr>",
            "<th>Estimated round trip airfare:</th> <td><strong>$<span id='estimate_airfare'>--</span> </strong>USD</td>",
            "</tr><tr>",
            "<th>Airfare booking fee:</th> <td><strong>$<span id='estimate_airfare_booking'>--</span> </strong>USD</td>",
            "</tr><tr>",
            "<th>Boston-to-Cape-Cod bus (round-trip):</th> <td><strong>$<span id='estimate_bus_service'>--</span></strong> USD</td>",
            "</tr><tr>",
            "<th>Other transit-related costs:</th> <td><strong>$<span id='estimate_other_transit'>--</span></strong> USD</td>",
            "</tr><tr>",
            "<th>Lodging, (<span id='estimate_lodging_nights'>X</span> nights x ($139 + 16.27))/2:</th> <td> <strong>$<span id='estimate_lodging_cost'>--</span></strong> USD</td>",
            "</tr><tr>",
            "<th>Registration fee:</th> <td> <strong>$<span id='estimate_regfee'>--</span> </strong>USD</td>",
            "</tr></table>",
            "<p style='font-size: 150%' class='estimates-total'>Total: <strong>$<span id='estimate_total'>--</span> </strong>USD</p>"
          ],
          "split": 2
        },
        "afford_to_pay": {
          "display_name": "If I am funded, I can afford to pay:",
          "type": "radio",
          "options": [20, 40, 60, 80, 90, "Other"],
          "required": false,
          "private": true,
          "shownifkey": "needassistance",
          "shownifval": "Yes, my attendance requires financial assistance.",
          "message": "All amounts in US dollars.",
          "split": 2
        },
        "afford_to_pay_custom": {
          "display_name": "Amount",
          "short_display_name": "AffAmnt",
          "type": "string",
          "required": false,
          "private": true,
          "shownifkey": "afford_to_pay",
          "shownifval": "Other",
          "split": 2
        }

      },
      "max_split": 2,
      "payment_product_name": "Flock 2017 Registration Fee",
      "currencies": {
        "USD": {
          "symbol": "$",
          "min_amount_for_receipt": 20,
          "default_amount": 40,
          "conversion_rate": 1
        }
      },
      "main_currency": "USD",
      "paypal_experience_profile": "XP-KZGG-W7U6-E9QN-AHRF",
      "desk_word": "something",

      "paypal": {
        "api_credentials": {
          "mode": "live",
          "client_id": "{{ regcfp_paypal_client_id }}",
          "client_secret": "{{ regcfp_paypal_client_secret }}"
        },

        "profile": {
          "name": "Flock 2017",
          "presentation": {
            "brand_name": "Fedora Project",
            "logo_image": "https://getfedora.org/static/images/fedora_infinity_140x140.png",
            "locale_code": "US"
          },
          "input_fields": {
            "allow_note": true,
            "no_shipping": 1,
            "address_override": 0
          },
          "flow_config": {
            "landing_page_type": "billing",
            "bank_txn_pending_url": "http://fedoraproject.org"
          }
        }
      }
    }
  }
}
