Skip to content

Commit

Permalink
Move country back to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceStevenWilley committed Nov 24, 2023
1 parent 98d0b49 commit c11a903
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docassemble/AssemblyLine/al_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,6 @@ def address_fields(
]
else:
fields = []
if show_country:
fields.append(
{
"label": str(self.country_label),
"field": self.attr_name("country"),
"required": False,
"code": "countries_list()",
"default": country_code,
}
)

fields.extend(
[
{
Expand Down Expand Up @@ -254,6 +243,16 @@ def address_fields(
"required": False,
}
)
if show_country:
fields.append(
{
"label": str(self.country_label),
"field": self.attr_name("country"),
"required": False,
"code": "countries_list()",
"default": country_code,
}
)
# NOTE: using , "datatype": "combobox" might be nice but does not play together well w/ address autocomplete
if not allow_no_address:
# show if isn't compatible with the hide if logic for `allow_no_address`
Expand Down

0 comments on commit c11a903

Please sign in to comment.