Skip to content

Commit

Permalink
add featuremap annotations to autocompletes
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-jones committed Oct 12, 2023
1 parent 83de118 commit aada3a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions portality/forms/application_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ class FieldDefinitions:
],
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type" : "journal", "field": "bibjson.publisher.name.exact"}},
{"autocomplete": {"type" : "journal", "field": "bibjson.publisher.name.exact"}}, # ~~^-> Autocomplete:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
],
"help": {
Expand All @@ -493,21 +493,21 @@ class FieldDefinitions:
"admin": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type": "journal", "field": "bibjson.publisher.name.exact"}},
{"autocomplete": {"type": "journal", "field": "bibjson.publisher.name.exact"}}, # ~~^-> Autocomplete:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"associate_editor": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type": "journal", "field": "bibjson.publisher.name.exact"}},
{"autocomplete": {"type": "journal", "field": "bibjson.publisher.name.exact"}}, # ~~^-> Autocomplete:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"editor": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type": "journal", "field": "bibjson.publisher.name.exact"}},
{"autocomplete": {"type": "journal", "field": "bibjson.publisher.name.exact"}}, # ~~^-> Autocomplete:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
}
Expand Down Expand Up @@ -577,7 +577,7 @@ class FieldDefinitions:
},
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type" : "journal", "field": "bibjson.institution.name.exact"}},
{"autocomplete": {"type" : "journal", "field": "bibjson.institution.name.exact"}}, # ~~^-> Autocomplete:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
]
}
Expand Down Expand Up @@ -1651,7 +1651,7 @@ class FieldDefinitions:
"owner_exists"
],
"widgets": [
{"autocomplete": {"type" : "account", "field": "id", "include" : False}},
{"autocomplete": {"type" : "account", "field": "id", "include" : False}}, # ~~^-> Autocomplete:FormWidget~~
"clickable_owner"
],
"contexts" : {
Expand Down Expand Up @@ -1709,15 +1709,15 @@ class FieldDefinitions:
"label": "Group",
"input": "text",
"widgets": [
{"autocomplete": {"type" : "editor_group", "field": "name", "include" : False}}
{"autocomplete": {"type" : "editor_group", "field": "name", "include" : False}} # ~~^-> Autocomplete:FormWidget~~
],
"contexts" : {
"editor" : {
"disabled" : True
},
"admin" : {
"widgets" : [
{"autocomplete": {"type": "editor_group", "field": "name", "include" : False}},
{"autocomplete": {"type": "editor_group", "field": "name", "include" : False}}, # ~~^-> Autocomplete:FormWidget~~
{"load_editors" : {"field" : "editor"}}
]
}
Expand Down

0 comments on commit aada3a6

Please sign in to comment.