Skip to content

Commit

Permalink
refactor to make sure that tagentry is correctly added and to avoid u…
Browse files Browse the repository at this point in the history
…nnecessary context
  • Loading branch information
amdomanska committed Dec 4, 2023
1 parent 5e6e583 commit 87f5ba9
Showing 1 changed file with 9 additions and 45 deletions.
54 changes: 9 additions & 45 deletions portality/forms/application_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1787,31 +1787,13 @@ class FieldDefinitions:
}
}
],
"widgets" : [
"tagentry"
"widgets": [
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
"full_contents", # ~~^->FullContents:FormWidget~~
"tagentry" # ~~-> TagEntry:FormWidget~~
],
"help" : {
"render_error_box": False
},
"contexts": {
"admin": {
"widgets": [
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
]
},
"editor": {
"widgets": [
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
]
},
"associate_editor": {
"widgets": [
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
]
}
}
}

Expand All @@ -1830,32 +1812,14 @@ class FieldDefinitions:
}
}
],
"widgets" : [
"tagentry"
],
"help" : {
"render_error_box": False
},
"contexts": {
"admin": {
"widgets": [
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
]
},
"editor": {
"widgets": [
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
]
},
"associate_editor": {
"widgets": [
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
]
}
}
"widgets": [
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
"full_contents", # ~~^->FullContents:FormWidget~~
"tagentry" # ~~-> TagEntry:FormWidget~~
]
}

# ~~->$ Subject:FormField~~
Expand Down

0 comments on commit 87f5ba9

Please sign in to comment.