Skip to content

Instantly share code, notes, and snippets.

@shergin
Created July 22, 2010 06:54
Show Gist options
  • Save shergin/485671 to your computer and use it in GitHub Desktop.
Save shergin/485671 to your computer and use it in GitHub Desktop.
var node = this.create({
name: 'edit' +
' ' + issue.mark +
' ' + issue.folder,
property: {issue: issue.id},
reference: {edit: issue.node},
child: [
{name: 'content', child: [
{name: 'title', child: [
{name: 'left mark'},
{name: 'right', child: new Widget.Input({value: issue.title, hint: 'Title', input: {title: input}, focus: true})}
]},
{name: 'notes', child: [
{name: 'left'},
{name: 'right', child: new Widget.Input({value: issue.notes, hint: 'Notes', input: {notes: input}, tag: 'textarea'})}
]},
{name: 'tags', child: [
{name: 'left'},
{name: 'right', child: new Widget.InputPickerCloud({value: issue.tags.JOIN(), hint: 'Tags', input: {tags: input}, picker: 'cloud'})}
/*
{name: 'right', child: [
{name: 'container', child: new Widget.InputPickerCloud({value: issue.tags.JOIN(), hint: 'Tags', input: {tags: input}, picker: 'cloud'})},
new Widget.Toggle({on: 'task', off: 'project', tag: 'label'})
]
}*/
]},
{name: 'due', child: [
{name: 'left'},
{name: 'right inline', child: [
new Widget.Enabler({
caption: 'Start',
checked: issue.start,
input: {startCheck: input},
content: [
new Widget.InputPickerCalendar({data: issue.start || today, input: {start: input}}),
new Widget.Enabler({
caption: 'Remind',
checked: issue.startRemind,
input: {startRemindCheck: input},
content: [
new Widget.InputPickerList({data: issue.startRemind || interval, input: {startRemind: input}, values: intervals, type: 'button'}),
]
})
]
})
]}
]},
{name: 'due', child: [
{name: 'left'},
{name: 'right inline', child: [
new Widget.Enabler({
caption: 'Due',
checked: issue.due,
input: {dueCheck: input},
content: [
new Widget.InputPickerCalendar({data: issue.due || today, input: {due: input}}),
new Widget.Enabler({
caption: 'Remind',
checked: issue.dueRemind,
input: {dueRemindCheck: input},
content: [
new Widget.InputPickerList({data: issue.dueRemind || interval, input: {dueRemind: input}, values: intervals, type: 'button'}),
]
})
]
})
]}
]},
{name: 'location', child: [
{name: 'left'},
{name: 'right inline', child: [
new Widget.Enabler({
caption: 'Geolocation',
checked: issue.geolocation,
input: {geolocationCheck: input},
content: [
new Widget.InputPickerGeolocation({data: issue.geolocation, input: {geolocation: input}})
]
})
]}
]},
/*
{name: 'repeat', child: [
{name: 'left'},
{name: 'right inline', child: [
new Widget.Enabler({
caption: 'Repeat',
text: [
new Widget.Input({})
]
})
]}
]},
{name: 'voice', child: [
{name: 'left'},
{name: 'right inline', child: [
new Widget.Enabler({
caption: 'Voice note',
text: [
new Widget.Input({})
]
})
]}
]}
*/
]},
{name: 'border', child: [
{name: 'top', child: [{name: 'left'}, {name: 'center', child: {}}, {name: 'right'}]},
{name: 'middle', child: [{name: 'left'}, {name: 'center'}, {name: 'right'}]},
{name: 'bottom', child: [{name: 'left'}, {name: 'center'}, {name: 'right'}]}
]}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment