-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Admin][Customer] Seeing detailed information about customer #6596
Conversation
tuka217
commented
Oct 31, 2016
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Related tickets | - |
License | MIT |
Scenario: Seeing information about customer groups | ||
Given the customer belongs to group "Retail" | ||
When I view details of the customer "f.baggins@shire.me" | ||
Then I should see the group "Retail" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should see that this customer belongs to the "Retail" group?
@@ -17,20 +22,29 @@ | |||
{% endif %} | |||
{{ 'sylius.ui.subscribed_to_newsletter'|trans }} | |||
</div> | |||
<div id="email-verified"> | |||
{% if customer.user.verified %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this if
inline? {{ customer.user.verified ? 'green checkmark' : 'red remove' }}
@@ -79,6 +79,7 @@ sylius: | |||
backorder: 'Backorder' | |||
backordered: 'Backordered' | |||
balance_due: 'Balance due' | |||
belonging_to_group: 'Belonging to group: ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't include :
in the translation.
0e1fa7f
to
fb9185e
Compare
[UiBandle] Add translations
fb9185e
to
90b4dcc
Compare
{{ 'sylius.ui.subscribed_to_newsletter'|trans }} | ||
</div> | ||
{% if customer.user %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about customer.user is defined
?
@@ -7,30 +7,37 @@ | |||
</a> | |||
<div class="meta"> | |||
<span class="date">{{ 'sylius.ui.customer_since'|trans }} {{ customer.createdAt|date }}</span> | |||
<br /> | |||
{% if customer.group %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
customer.group is defined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it should be !== null
, because when variable is null then it's been already defined, WDYT?
{{ 'sylius.ui.email_verified'|trans }} | ||
</div> | ||
{% endif %} | ||
{% if customer.defaultAddress %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -79,6 +79,7 @@ sylius: | |||
backorder: 'Backorder' | |||
backordered: 'Backordered' | |||
balance_due: 'Balance due' | |||
belonging_to_group: 'Belonging to group' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Belongs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant "membership", so maybe it should be a " belongingness to groups"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't it be just group_membership
?
Thank you Ania! |
[Admin][Customer] Seeing detailed information about customer