-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathtodo.js
executable file
·75 lines (73 loc) · 2.7 KB
/
todo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
var uiModels = uiModels || {};
uiModels.todo = {
id: 'todo',
label: 'To Do',
name: 'task',
namePlural: 'tasks',
icon: 'todo.gif',
fnTitle:'title',
fnSearch: ['title', 'description'],
elements: [
{
type: 'panel', label: 'Task', width: 62,
elements: [
{
id: 'title', attribute: 'title', type: 'text', label: 'Title', required: true,
//placeholder: 'Call John',
maxLength: 255,
width: 100, inMany: true
},
{
id: 'duedate', attribute: 'duedate', type: 'date', label: 'Due Date', width: 62, inMany: true
},
{
id: 'category', attribute: 'category', type: 'lov', label: 'Category', width: 38, inMany: true,
list: [
{id: 1, text: 'Home'},
{id: 2, text: 'Work'},
{id: 3, text: 'Fun'},
{id: 4, text: 'Others'},
{id: 5, text: 'Misc.'}
],
typeChart:'bars'
}
]
},
{
type: 'panel', label: 'Status', width: 38,
elements: [
{
id: 'priority', attribute: 'priority', type: 'lov', label: 'Priority', required: true,
width: 100, inMany: true,
list: [
{id: 1, text: '1 - ASAP'},
{id: 2, text: '2 - Urgent'},
{id: 3, text: '3 - Important'},
{id: 4, text: '4 - Medium'},
{id: 5, text: '5 - Low'}
]
},
{
id: 'complete', attribute: 'complete', type: 'boolean', width: 100, inMany: true,
label: 'Complete',
labelCharts:'Tasks completion', labelTrue: 'Complete', labelFalse:'Incomplete',
typeChart:'pie'
}
]
},
{
type: 'panel', label: 'Task Description', label2:'and Notes', width: 100,
elements: [
{
id: 'description', attribute: 'description', type: 'textmultiline',
label: 'Description',
maxLength: 1000,
width: 100, height: 5, inMany: false
}
]
}
]
};
if(typeof module === "object" && typeof module.exports === "object"){
module.exports = uiModels.todo;
}