diff --git a/accounts/forms.py b/accounts/forms.py
index 9762acc..a61a599 100644
--- a/accounts/forms.py
+++ b/accounts/forms.py
@@ -27,18 +27,32 @@ class AccountUpdateForm(UserChangeForm):
class CustomerUpdateForm(forms.ModelForm):
+ class Meta:
+ model = User
+ fields = (
+ 'email',
+ )
+
+
+class CustomerShippingAddressUpdateForm(forms.ModelForm):
class Meta:
model = User
fields = (
'first_name',
'last_name',
- 'email',
'shipping_street_address_1',
'shipping_street_address_2',
'shipping_city',
'shipping_state',
'shipping_postal_code',
)
+ labels = {
+ 'shipping_street_address_1': 'Street line 1',
+ 'shipping_street_address_2': 'Street line 2',
+ 'shipping_city': 'City',
+ 'shipping_state': 'State',
+ 'shipping_postal_code': 'ZIP code',
+ }
class UserSignupForm(SignupForm):
diff --git a/dashboard/templates/dashboard/customer/detail.html b/dashboard/templates/dashboard/customer/detail.html
index fe2a932..4edbad1 100644
--- a/dashboard/templates/dashboard/customer/detail.html
+++ b/dashboard/templates/dashboard/customer/detail.html
@@ -19,14 +19,14 @@
Details
- - Primary email address
+ - Email address
-
{{ customer.email }} ↗
- - Default shipping address
+ - Shipping address
-
- {% include 'dashboard/partials/_address.html' with address=customer %}
+ {% include 'dashboard/partials/_address.html' with full_name=customer.get_full_name address=customer %}
diff --git a/dashboard/templates/dashboard/order/detail.html b/dashboard/templates/dashboard/order/detail.html
index 4709e1e..b95f6a9 100644
--- a/dashboard/templates/dashboard/order/detail.html
+++ b/dashboard/templates/dashboard/order/detail.html
@@ -133,7 +133,7 @@
Shipping address
- {% include 'dashboard/partials/_address.html' with address=order %}
+ {% include 'dashboard/partials/_address.html' with full_name=order.customer.get_full_name address=order %}
diff --git a/dashboard/templates/dashboard/order/tracking_form.html b/dashboard/templates/dashboard/order/tracking_form.html
index f8d45b3..33fa38e 100644
--- a/dashboard/templates/dashboard/order/tracking_form.html
+++ b/dashboard/templates/dashboard/order/tracking_form.html
@@ -17,7 +17,7 @@
Shipping address
- {% include 'dashboard/partials/_address.html' with address=order %}
+ {% include 'dashboard/partials/_address.html' with full_name=order.customer.get_full_name address=order %}