Created
September 25, 2015 17:57
-
-
Save cmilfont/5c1273bcb7d4e2c78298 to your computer and use it in GitHub Desktop.
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
Biohacking.TrackFormBuilder = function() { | |
this.layout = { | |
sections:[ | |
{ | |
hidden: true, | |
fields: [{ | |
"class": "display", | |
message: 'Atividade inserida com sucesso!', | |
type: 'Display' | |
}] | |
}, | |
{ | |
fields: [{ | |
name: 'kind', | |
mandatory: true, | |
type: 'Lookup', | |
options: Biohacking.KIND | |
}] | |
}, | |
{ | |
hidden: true, | |
fields: [{ | |
name: 'logged_at', | |
mandatory: true, | |
type: 'Date' | |
}] | |
},{ | |
hidden: true, | |
fields: [{ | |
name: 'description', | |
placeholder: "Enter tags to edit", | |
type: 'Text' | |
}] | |
},{ | |
fields: [{ | |
name: 'Add', | |
type: 'Button' | |
}] | |
},{ | |
hidden: true, | |
fields: [{ | |
name: 'Delete', | |
type: 'Button' | |
},{ | |
name: 'Done', | |
type: 'Button' | |
}] | |
}] | |
}; | |
}; | |
Biohacking.TrackFormBuilder.prototype = new Biohacking.FormBuilder; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment