Skip to content

Instantly share code, notes, and snippets.

@cmilfont
Created September 25, 2015 17:57
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 cmilfont/5c1273bcb7d4e2c78298 to your computer and use it in GitHub Desktop.
Save cmilfont/5c1273bcb7d4e2c78298 to your computer and use it in GitHub Desktop.
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