Skip to content

Commit

Permalink
Add account-content wrapper so content doesn't flow outside page cont…
Browse files Browse the repository at this point in the history
…ainer
  • Loading branch information
pvaladez committed May 14, 2024
1 parent 010ed93 commit 0f2b490
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
38 changes: 19 additions & 19 deletions templates/pages/account/add-address.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ <h2 class="page-heading">{{lang 'forms.address.add.heading'}}</h2>
{{/if}}

<div class="account-body">

<form action="{{forms.address.action}}" data-address-form class="form" method="post">
{{#if forms.address.address_id }}
<input type="hidden" name="shipid" value="{{forms.address.address_id}}">
{{/if}}
<fieldset class="form-fieldset">
<div class="form-row form-row--half">
{{#each forms.address.shipping_fields }}
{{{dynamicComponent 'components/common/forms'}}}
{{/each}}
<section class="account-content">
<form action="{{forms.address.action}}" data-address-form class="form" method="post">
{{#if forms.address.address_id }}
<input type="hidden" name="shipid" value="{{forms.address.address_id}}">
{{/if}}
<fieldset class="form-fieldset">
<div class="form-row form-row--half">
{{#each forms.address.shipping_fields }}
{{{dynamicComponent 'components/common/forms'}}}
{{/each}}
</div>
</fieldset>
<div class="form-actions">
<input type="submit" class="button button--primary" value="{{lang 'forms.address.submit_value'}}">
<a href="{{urls.account.addresses}}" class="button">{{lang 'common.cancel'}}</a>
{{inject 'required' (lang 'common.required')}}
{{inject 'state_error' (lang 'errors.state_error')}}
</div>
</fieldset>
<div class="form-actions">
<input type="submit" class="button button--primary" value="{{lang 'forms.address.submit_value'}}">
<a href="{{urls.account.addresses}}" class="button">{{lang 'common.cancel'}}</a>
{{inject 'required' (lang 'common.required')}}
{{inject 'state_error' (lang 'errors.state_error')}}
</div>
</form>

</form>
</section>
</div>
</div>

Expand Down
5 changes: 4 additions & 1 deletion templates/pages/account/addresses.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ <h2 class="page-heading">{{lang 'account.addresses.heading' }}</h2>
{{#if customer.success}}
{{>components/common/alert/alert-success customer.success}}
{{/if}}
{{> components/account/address-list }}

<section class="account-content">
{{> components/account/address-list }}
</section>
</div>
</div>
{{/partial}}
Expand Down

0 comments on commit 0f2b490

Please sign in to comment.