Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
phorward committed Sep 25, 2024
1 parent b14d4ba commit 730983f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 25 deletions.
7 changes: 3 additions & 4 deletions deploy/modules/todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ class Todo(List):
"message",
"user",
),
# LIVE (3)
"views": [
{
"icon": "chat-dots-fill", # LIVE (4)
"name": "Service - Neu",
"icon": "chat-dots-fill",
"filter": {
"category": "service",
"status": "new",
},
"actions": ["assign"],
"customActions": { # LIVE(5)
"customActions": {
"assign": {
"name": "Zuweisen", # button name
"access": ["todo-edit", "root"], # Who may trigger?
Expand All @@ -40,7 +39,7 @@ class Todo(List):
},
},
}
]
],
}

default_order = {
Expand Down
35 changes: 15 additions & 20 deletions deploy/skeletons/todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@


class TodoSkel(skeleton.Skeleton):
subSkels = {
"*": ("*name", ),
"add": ["subject"],
}

# FIXME: viur-core
creationdate = DateBone(
descr="Erstellt am",
readOnly=True,
visible=False,
indexed=True,
compute=Compute(fn=utils.utcNow, interval=ComputeInterval(ComputeMethod.Once)),
)

firstname = StringBone(
descr="Vorname",
Expand All @@ -26,24 +13,32 @@ class TodoSkel(skeleton.Skeleton):
required=True,
)

building = SelectBone(
descr="Gebäude",
required=True,
values=(
"Kanalhafen 23",
"Kohlenhafen 13",
"Petroleumhafen 42",
"Stadthafen 1a",
"Stadthafen 1b",
"Südhafen 9",
)
)

category = SelectBone(
descr="Thema",
defaultValue="question",
required=True,
values={
"question": "Frage",
"question": "Anfrage",
"billing": "Abrechnung",
"service": "Service",
},
)

# LIVE (1)
phone = PhoneBone(
descr="Telefon",
default_country_code="+49",
params={
"visibleIf": """ category == "service" """ # LIVE(2)
}
default_
)

message = TextBone(
Expand Down
2 changes: 1 addition & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"admin": {
"command": "viur package install admin",
"kind": "exec",
"version": "4.5.1"
"version": "4.5.3"
},
"app": {
"command": "build",
Expand Down

0 comments on commit 730983f

Please sign in to comment.