Skip to content

Commit

Permalink
Merge tag '20231005_1316_issue3719' into develop
Browse files Browse the repository at this point in the history
Reinstate publisher autocomplete
  • Loading branch information
Steven-Eardley committed Oct 17, 2023
2 parents 0a4bae1 + 2ef3428 commit 7884380
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions portality/forms/application_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,21 @@ class FieldDefinitions:
"contexts": {
"admin": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"editor": {
"disabled": True,
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"associate_editor": {
"disabled": True,
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
Expand Down Expand Up @@ -212,16 +215,19 @@ class FieldDefinitions:
},
"admin": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"associate_editor": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"editor": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
}
Expand Down Expand Up @@ -474,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 @@ -486,16 +492,22 @@ class FieldDefinitions:
},
"admin": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"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:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
},
"editor": {
"widgets": [
"trim_whitespace", # ~~^-> TrimWhitespace:FormWidget~~
{"autocomplete": {"type": "journal", "field": "bibjson.publisher.name.exact"}}, # ~~^-> Autocomplete:FormWidget~~
"click_to_copy", # ~~^-> ClickToCopy:FormWidget~~
]
}
Expand Down Expand Up @@ -565,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 @@ -1639,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 @@ -1697,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 7884380

Please sign in to comment.