Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
077ea49b
Commit
077ea49b
authored
May 25, 2015
by
Dino Cikatic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SOL-839 confirmation and receipt page internationalization
parent
0a43ebf1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
60 deletions
+62
-60
lms/static/sass/views/_shoppingcart.scss
+4
-2
lms/templates/shoppingcart/receipt.html
+57
-57
lms/templates/shoppingcart/shopping_cart.html
+1
-1
No files found.
lms/static/sass/views/_shoppingcart.scss
View file @
077ea49b
...
...
@@ -643,7 +643,7 @@ $light-border: 1px solid $gray-l5;
padding
:
(
$baseline
/
2
)
0
;
width
:
50%
;
b
{
.billing-detail-label
{
@include
margin-right
(
$baseline
);
@extend
%t-copy-sub1
;
display
:
inline-block
;
...
...
@@ -651,12 +651,14 @@ $light-border: 1px solid $gray-l5;
vertical-align
:
top
;
}
label
{
.billing-detail-value
{
@extend
%t-copy-sub1
;
display
:
inline-block
;
margin
:
0
;
cursor
:
text
;
width
:
(
$baseline
*
60
);
word-wrap
:
break-word
;
color
:
$gray-d3
;
font-style
:
normal
;
}
}
...
...
lms/templates/shoppingcart/receipt.html
View file @
077ea49b
...
...
@@ -107,74 +107,74 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<div
class=
"row"
>
<div
class=
"row-inside"
>
<p>
<b>
${_('Company Name')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Company Name')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.company_name:
${order.company_name}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Purchase Order Number')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Purchase Order Number')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.customer_reference_number:
${order.customer_reference_number}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Company Contact Name')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Company Contact Name')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.company_contact_name:
${order.company_contact_name}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Company Contact Email')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Company Contact Email')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.company_contact_email:
${order.company_contact_email}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Recipient Name')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Recipient Name')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.recipient_name:
${order.recipient_name}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Recipient Email')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Recipient Email')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.recipient_email:
${order.recipient_email}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
</div>
...
...
@@ -182,98 +182,98 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<div
class=
"row"
>
<div
class=
"row-inside"
>
<p>
<b>
${_('Card Type')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Card Type')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.bill_to_cardtype:
${order.bill_to_cardtype}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Credit Card Number')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Credit Card Number')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.bill_to_ccnum:
${order.bill_to_ccnum}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Name')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Name')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.bill_to_first or order.bill_to_last:
${order.bill_to_first} ${order.bill_to_last}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Address 1')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Address 1')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.bill_to_street1:
${order.bill_to_street1}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Address 2')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Address 2')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.bill_to_street2:
${order.bill_to_street2}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('City')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('City')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.bill_to_city:
${order.bill_to_city}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('State')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('State')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.bill_to_state:
${order.bill_to_state}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
<div
class=
"row-inside"
>
<p>
<b>
${_('Country')}:
</b>
<
label
>
<b
class=
"billing-detail-label"
>
${_('Country')}:
</b>
<
span
class=
"billing-detail-value"
>
% if order.bill_to_country:
${order.bill_to_country
.upper()
}
${order.bill_to_country}
% else:
N/A
${_('N/A')}
% endif
</
label
>
</
span
>
</p>
</div>
</div>
...
...
lms/templates/shoppingcart/shopping_cart.html
View file @
077ea49b
...
...
@@ -137,7 +137,7 @@ from django.utils.translation import ungettext
% endif
<span
class=
"pull-right"
>
${_('TOTAL:')}
<b
id=
"total-amount"
data-amount=
"${'{price:0.2f}'.format(price=amount)}"
>
## Translators: currency_symbol
l
is a symbol indicating type of currency, ex "$". currency_abbr is
## Translators: currency_symbol is a symbol indicating type of currency, ex "$". currency_abbr is
## an abbreviation for the currency, ex "USD". This string would look like this when all variables are in:
## "$500.00 USD"
${_("{currency_symbol}{price} {currency_abbr}").format(currency_symbol=currency_symbol, price="{0:0.2f}".format(amount), currency_abbr=currency.upper())}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment