Skip to content

Commit

Permalink
Merge tag '20231026_1320_issue3719' into develop
Browse files Browse the repository at this point in the history
Fixes to form widgets
  • Loading branch information
Steven-Eardley committed Oct 26, 2023
2 parents 3da3cf3 + e3db96e commit 23a5444
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions portality/forms/application_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,28 +558,37 @@ class FieldDefinitions:
"a society or other type of institution, enter that here."],
"placeholder": "Type or select the society or institution’s name"
},
"contexts" : {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type" : "journal", "field": "bibjson.institution.name.exact"}}, # ~~^-> Autocomplete:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
],
"contexts": {
"admin": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type": "journal", "field": "bibjson.institution.name.exact"}},
# ~~^-> Autocomplete:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"associate_editor": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type": "journal", "field": "bibjson.institution.name.exact"}},
# ~~^-> Autocomplete:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"editor": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type": "journal", "field": "bibjson.institution.name.exact"}},
# ~~^-> Autocomplete:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
}
},
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type" : "journal", "field": "bibjson.institution.name.exact"}}, # ~~^-> Autocomplete:FormWidget~~
"full_contents" # ~~^->FullContents:FormWidget~~
]
}
}

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

0 comments on commit 23a5444

Please sign in to comment.