Skip to content

Instantly share code, notes, and snippets.

@L422Y
Last active December 24, 2015 03:39
Show Gist options
  • Save L422Y/6738301 to your computer and use it in GitHub Desktop.
Save L422Y/6738301 to your computer and use it in GitHub Desktop.
a test form for enformer, a framework for easily building forms and plugging results into an api
require:
template: test.twig
data:
title: Test Form from YAML
subtitle: these values are loaded from yaml!
varname: varvalue
typemap: { _name: name, _title: name, phone_: phone, email: email, alpha: select,states: select }
sets:
name:
title: Personal Information
items:
first_name: First Name
last_name: Last Name
contact:
title: Contact Information
items:
phone_mobile: Phone Number
email: Email
company:
title: Company Information
items:
company_name: Company Name
job_title: Job Title
phone_number: Work Phone
email: Work Email
etc:
items:
alpha:
label: Pick a State
values: [A,B,C]
states:
label: Pick a State
values:
AL: Alabama
AK: Alaska
AZ: Arizona
AR: Arkansas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment