forked from steedos/steedos-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.object.yml
141 lines (139 loc) · 2.87 KB
/
events.object.yml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: events
label: Event
icon: event
enable_search: true
version: 2
fields:
name:
label: Name
type: text
required: true
is_wide: true
searchable: true
index: true
name: name
start:
label: Start Timne
type: datetime
required: true
defaultValue: !<tag:yaml.org,2002:js/function> |-
function () {
var now, reValue;
now = new Date();
reValue = new Date(now.getTime() + 1 * 60 * 60 * 1000);
reValue.setMinutes(0);
reValue.setSeconds(0);
return reValue;
}
sortable: true
name: start
end:
label: End Time
type: datetime
required: true
defaultValue: !<tag:yaml.org,2002:js/function> |-
function () {
var now, reValue;
now = new Date();
reValue = new Date(now.getTime() + 2 * 60 * 60 * 1000);
reValue.setMinutes(0);
reValue.setSeconds(0);
return reValue;
}
name: end
assignees:
label: Assignees
type: lookup
reference_to: users
defaultValue: "{userId}"
multiple: true
name: assignees
filterable: true
related_to:
label: Related to
type: lookup
index: true
reference_to: !<tag:yaml.org,2002:js/function> |-
function () {
var o;
o = [];
_.each(Creator.Objects, function (object, object_name) {
if (object.enable_events) {
return o.push(object.name);
}
});
return o;
}
name: related_to
filterable: true
is_all_day:
label: All Day Event
type: boolean
name: is_all_day
location:
label: Location
type: text
name: location
description:
label: Description
type: textarea
is_wide: true
name: description
list_views:
calendar_view:
type: calendar
label: Calendar View
filter_scope: space
filters:
- - owner
- =
- '{userId}'
- or
- - assignees
- =
- '{userId}'
options:
startDateExpr: start
endDateExpr: end
textExpr: name
title:
- name
- start
- end
- assignees
- related_to
currentView: week
startDayHour: 8
endDayHour: 18
all:
label: All Events
filter_scope: space
filters:
- - owner
- =
- '{userId}'
- or
- - assignees
- =
- '{userId}'
columns:
- name
- start
- end
- assignees
- related_to
permission_set:
user:
allowCreate: true
allowDelete: true
allowEdit: true
allowRead: true
modifyAllRecords: false
viewAllRecords: true
admin:
allowCreate: true
allowDelete: true
allowEdit: true
allowRead: true
modifyAllRecords: true
viewAllRecords: true