Last active
December 24, 2015 03:39
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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