forked from evoluteur/evolutility-ui-jquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo.js
More file actions
executable file
·91 lines (89 loc) · 3.51 KB
/
Copy pathtodo.js
File metadata and controls
executable file
·91 lines (89 loc) · 3.51 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
var uiModels = uiModels || {};
uiModels.todo = {
id: 'todo',
label: 'To Do',
name: 'task',
namePlural: 'tasks',
icon: 'todo.gif',
fnTitle:'title',
fnSearch: ['title', 'description', 'notes'],
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: 'home', text: 'Home'},
{id: 'work', text: 'Work'},
{id: 'fun', text: 'Fun'},
{id: 'others', text: 'Others'},
{id: 'misc', 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: 'project', attribute: 'project', type: 'list', label: 'Projects', width: 100, inMany: true,
list: [
{id: '1', text: 'Project 1'},
{id: '2', text: 'Project 2'},
{id: '3', text: 'Project 3'},
{id: '4', text: 'Top Secret Project'},
{id: '5', text: 'Translation'},
{id: '10', text: 'Other'}
],
typeChart:'bars'
},
{
id: 'description', attribute: 'description', type: 'textmultiline',
label: 'Description',
maxLength: 1000,
width: 62, height: 5, inMany: false
},
{
id: 'notes', attribute: 'notes', type: 'textmultiline', label: 'Notes', maxLength: 1000,
width: 38, height: 5, inMany: false
}
]
}
]
};
if(typeof module === "object" && typeof module.exports === "object"){
module.exports = uiModels.todo;
}