Skip to content

Commit 730983f

Browse files
committed
Fixes
1 parent b14d4ba commit 730983f

File tree

3 files changed

+19
-25
lines changed

3 files changed

+19
-25
lines changed

deploy/modules/todo.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,16 @@ class Todo(List):
1515
"message",
1616
"user",
1717
),
18-
# LIVE (3)
1918
"views": [
2019
{
21-
"icon": "chat-dots-fill", # LIVE (4)
2220
"name": "Service - Neu",
21+
"icon": "chat-dots-fill",
2322
"filter": {
2423
"category": "service",
2524
"status": "new",
2625
},
2726
"actions": ["assign"],
28-
"customActions": { # LIVE(5)
27+
"customActions": {
2928
"assign": {
3029
"name": "Zuweisen", # button name
3130
"access": ["todo-edit", "root"], # Who may trigger?
@@ -40,7 +39,7 @@ class Todo(List):
4039
},
4140
},
4241
}
43-
]
42+
],
4443
}
4544

4645
default_order = {

deploy/skeletons/todo.py

+15-20
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33

44

55
class TodoSkel(skeleton.Skeleton):
6-
subSkels = {
7-
"*": ("*name", ),
8-
"add": ["subject"],
9-
}
10-
11-
# FIXME: viur-core
12-
creationdate = DateBone(
13-
descr="Erstellt am",
14-
readOnly=True,
15-
visible=False,
16-
indexed=True,
17-
compute=Compute(fn=utils.utcNow, interval=ComputeInterval(ComputeMethod.Once)),
18-
)
196

207
firstname = StringBone(
218
descr="Vorname",
@@ -26,24 +13,32 @@ class TodoSkel(skeleton.Skeleton):
2613
required=True,
2714
)
2815

16+
building = SelectBone(
17+
descr="Gebäude",
18+
required=True,
19+
values=(
20+
"Kanalhafen 23",
21+
"Kohlenhafen 13",
22+
"Petroleumhafen 42",
23+
"Stadthafen 1a",
24+
"Stadthafen 1b",
25+
"Südhafen 9",
26+
)
27+
)
28+
2929
category = SelectBone(
3030
descr="Thema",
3131
defaultValue="question",
3232
required=True,
3333
values={
34-
"question": "Frage",
34+
"question": "Anfrage",
3535
"billing": "Abrechnung",
3636
"service": "Service",
3737
},
3838
)
3939

40-
# LIVE (1)
4140
phone = PhoneBone(
42-
descr="Telefon",
43-
default_country_code="+49",
44-
params={
45-
"visibleIf": """ category == "service" """ # LIVE(2)
46-
}
41+
default_
4742
)
4843

4944
message = TextBone(

project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"admin": {
77
"command": "viur package install admin",
88
"kind": "exec",
9-
"version": "4.5.1"
9+
"version": "4.5.3"
1010
},
1111
"app": {
1212
"command": "build",

0 commit comments

Comments
 (0)