Skip to content

Commit

Permalink
Merge pull request #150 from eloyucu/master
Browse files Browse the repository at this point in the history
Fix Account Profile template.
  • Loading branch information
sunfmin committed Jun 3, 2019
2 parents 849d4d5 + bc64d6f commit debf771
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/account/views/profile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@
</div>


{{$currUser := . }}
{{if len .Addresses}}
<div class="form-group">
<label form="default-billing-address">Default Billing Address</label>
<select name="default-billing-address">
{{range .Addresses}}
<option {{if eq .CurrentUser.DefaultBillingAddress .ID}}selected{{end}} value="{{.ID}}">{{.Address2}} {{.Address1}} {{.City}}</option>
<option {{if eq $currUser.DefaultBillingAddress .ID}}selected{{end}} value="{{.ID}}">{{.Address2}} {{.Address1}} {{.City}}</option>
{{end}}
</select>

<label form="default-shipping-address">Default Shipping Address</label>
<select name="default-shipping-address">
{{range .Addresses}}
<option {{if eq .CurrentUser.DefaultShippingAddress .ID}}selected{{end}} value="{{.ID}}">{{.Address2}} {{.Address1}} {{.City}}</option>
<option {{if eq $currUser.DefaultShippingAddress .ID}}selected{{end}} value="{{.ID}}">{{.Address2}} {{.Address1}} {{.City}}</option>
{{end}}
</select>
</div>
Expand Down

0 comments on commit debf771

Please sign in to comment.