Skip to content

Commit

Permalink
[IMP] l10n_br_portal: move the country field to before the zip field
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Feb 11, 2022
1 parent 276f297 commit e44c423
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions l10n_br_portal/views/portal_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,29 @@

<div class="clearfix" />

<div
t-attf-class="form-group #{error.get('country_id') and 'o_has_error' or ''} col-xl-6"
>
<label
class="col-form-label"
for="country_id"
>Country</label>
<select
name="country_id"
t-attf-class="form-control #{error.get('country_id') and 'is-invalid' or ''}"
>
<option value="">Country...</option>
<t t-foreach="countries or []" t-as="country">
<option
t-att-value="country.id"
t-att-selected="country.id == int(country_id) if country_id else country.id == partner.country_id.id"
>
<t t-esc="country.name" />
</option>
</t>
</select>
</div>

<div
t-attf-class="form-group #{error.get('zip') and 'o_has_error' or ''} col-xl-6"
>
Expand Down Expand Up @@ -232,28 +255,6 @@
/>
</div>

<div
t-attf-class="form-group #{error.get('country_id') and 'o_has_error' or ''} col-xl-6"
>
<label
class="col-form-label"
for="country_id"
>Country</label>
<select
name="country_id"
t-attf-class="form-control #{error.get('country_id') and 'is-invalid' or ''}"
>
<option value="">Country...</option>
<t t-foreach="countries or []" t-as="country">
<option
t-att-value="country.id"
t-att-selected="country.id == int(country_id) if country_id else country.id == partner.country_id.id"
>
<t t-esc="country.name" />
</option>
</t>
</select>
</div>
<div
t-attf-class="form-group #{error.get('state_id') and 'o_has_error' or ''} col-xl-6"
>
Expand Down

0 comments on commit e44c423

Please sign in to comment.