Skip to content

Instantly share code, notes, and snippets.

@0xae
Created January 21, 2015 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xae/d36c4db49ce02c5bf94c to your computer and use it in GitHub Desktop.
Save 0xae/d36c4db49ce02c5bf94c to your computer and use it in GitHub Desktop.
[
{
"tg": "input",
"attrs": {
"type" : "text",
"placeholder" : "Your name",
"name" : "user-name",
"class" : "form-control"
}
},
{
"tg": "input",
"attrs": {
"type" : "number",
"placeholder" : "Your age",
"name" : "user-age",
"class" : "form-control"
}
},
{
"tg": "input",
"attrs": {
"type" : "checkbox",
"checked" : false,
"name" : "user-has-tv",
"class" : "form-control"
}
},
{
"tg": "input",
"attrs": {
"type" : "checkbox",
"checked" : true,
"name" : "user-has-pc",
"class" : "form-control"
}
},
{
"tg": "input",
"attrs": {
"type" : "radio",
"checked" : true,
"name" : "user-lives-in-praia",
"value" : "yes",
"class" : "form-control"
}
},
{
"tg": "input",
"attrs": {
"type" : "radio",
"checked" : false,
"name" : "user-lives-in-praia",
"value" : "no",
"class" : "form-control"
}
},
{
"tg": "select",
"attrs": {
"name" : "user-gender",
"class" : "form-control"
},
"childs" : [
{"value" : "male"},
{"value" : "female"},
{"value" : "gay"},
{"value" : "geek"}
]
},
{
"tg": "textarea",
"attrs": {
"cols" : 10,
"rows" : 10,
"placeholder" : "Your description",
"name" : "user-desc",
"class" : "form-control"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment