Commit 0af90d7 Andreas H. Kelch
committed
1 parent 9049652 commit 0af90d7 Copy full SHA for 0af90d7
File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,22 @@ class Todo(List):
12
12
"lastname" ,
13
13
"firstname" ,
14
14
"subject" ,
15
- )
15
+ ),
16
+ "actions" :["assign" ],
17
+ "customActions" :{
18
+ "assign" : {
19
+ "name" : "Zuweisen" , # button name
20
+ "access" : ["todo-edit" , "root" ], # wer darf triggern
21
+ "icon" : "person-plus-fill" , # button icon
22
+ "variant" :"success" , # button color
23
+ "outline" :True , # button outline style
24
+ "action" : "action" ,
25
+ "url" : "/todo/assign" , # actionSkel initial url
26
+ "enabled" : 'True' , # regel wann button aktiv "TRUE" === immer
27
+ "show_label" :True , # button ohne label
28
+ "target" :"popup" # popup, tab
29
+ },
30
+ }
16
31
}
17
32
18
33
default_order = {
@@ -58,6 +73,11 @@ class TodoAssignSkel(ActionSkel):
58
73
return self .render .edit (action_skel , "assign" )
59
74
60
75
# TODO: Add program logic here
76
+ for todo in action_skel ["todo" ]:
77
+ skel = self .editSkel ()
78
+ skel .fromDB (todo ["dest" ]["key" ])
79
+ skel .setBoneValue ("user" , action_skel ["user" ]["dest" ]["key" ])
80
+ skel .toDB ()
61
81
62
82
# TODO: Provide generic render action success
63
83
return self .render .editSuccess (action_skel , "assignSuccess" )
You can’t perform that action at this time.
0 commit comments