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
99dfe98a
Commit
99dfe98a
authored
Jun 02, 2015
by
Sylvia Pearce
Committed by
Chris Dodge
Jun 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Instructor Dashboard UI text for enrollment codes
parent
c482fce9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
lms/templates/instructor/instructor_dashboard_2/add_coupon_modal.html
+6
-6
lms/templates/instructor/instructor_dashboard_2/e-commerce.html
+8
-8
lms/templates/instructor/instructor_dashboard_2/edit_coupon_modal.html
+4
-4
No files found.
lms/templates/instructor/instructor_dashboard_2/add_coupon_modal.html
View file @
99dfe98a
...
...
@@ -3,7 +3,7 @@ from django.utils.translation import ugettext as _
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
page
args=
"section_data"
/>
<section
id=
"add-coupon-modal"
class=
"modal"
role=
"dialog"
tabindex=
"-1"
aria-label=
"${_('Add Coupon')}"
>
<section
id=
"add-coupon-modal"
class=
"modal"
role=
"dialog"
tabindex=
"-1"
aria-label=
"${_('Add Coupon
Code
')}"
>
<div
class=
"inner-wrapper"
>
<button
class=
"close-modal"
>
<i
class=
"icon fa fa-remove"
></i>
...
...
@@ -15,12 +15,12 @@ from django.core.urlresolvers import reverse
<div
id=
"coupon-content"
>
<header>
<h2>
${_("Add Coupon")}
</h2>
<h2>
${_("Add Coupon
Code
")}
</h2>
</header>
<div
class=
"instructions"
>
<p>
${_("
Please enter Coupon detail below
")}
</p>
${_("
Enter information about the coupon code below.
")}
</p>
</div>
<form
id=
"add_coupon_form"
>
...
...
@@ -30,12 +30,12 @@ from django.core.urlresolvers import reverse
<ol
class=
"list-input"
>
<li
class=
"field required text"
id=
"add-coupon-modal-field-code"
>
<label
for=
"coupon_code"
class=
"required"
>
${_("Code")}
</label>
<label
for=
"coupon_code"
class=
"required"
>
${_("Co
upon Co
de")}
</label>
<input
class=
""
id=
"coupon_code"
type=
"text"
name=
"code"
maxlength=
"16"
value=
""
placeholder=
"example: A123DS"
aria-required=
"true"
/>
</li>
<li
class=
"field required text"
id=
"add-coupon-modal-field-discount"
>
<label
for=
"coupon_discount"
class=
"required text"
>
${_("
Percentage Discount
")}
</label>
<label
for=
"coupon_discount"
class=
"required text"
>
${_("
Discount Percentage
")}
</label>
<input
class=
"field required"
id=
"coupon_discount"
type=
"text"
name=
"discount"
value=
""
maxlength=
"3"
aria-required=
"true"
/>
</li>
...
...
@@ -62,7 +62,7 @@ from django.core.urlresolvers import reverse
</fieldset>
<div
class=
"submit"
>
<input
name=
"submit"
type=
"button"
id=
"add_coupon_button"
value=
"${_('Add Coupon')}"
/>
<input
name=
"submit"
type=
"button"
id=
"add_coupon_button"
value=
"${_('Add Coupon
Code
')}"
/>
</div>
</form>
</div>
...
...
lms/templates/instructor/instructor_dashboard_2/e-commerce.html
View file @
99dfe98a
...
...
@@ -131,25 +131,25 @@ import pytz
%endif
%if section_data['coupons_enabled']:
<div
class=
"wrap"
>
<h2>
${_("
Discount
Code List")}
</h2>
<h2>
${_("
Coupon
Code List")}
</h2>
<div>
<span
class=
"csv_tip"
>
${_("Download a .csv file of all
discount
codes for this course.")}
<input
class=
"add blue-button"
type=
"button"
name=
"download-coupon-codes-csv"
value=
"${_("
Download
Discount
Codes
")}"
data-endpoint=
"${ section_data['download_coupon_codes_url'] }"
data-csv=
"true"
>
<span
class=
"csv_tip"
>
${_("Download a .csv file of all
coupon
codes for this course.")}
<input
class=
"add blue-button"
type=
"button"
name=
"download-coupon-codes-csv"
value=
"${_("
Download
Coupon
Codes
")}"
data-endpoint=
"${ section_data['download_coupon_codes_url'] }"
data-csv=
"true"
>
</span>
<span
class=
"tip"
>
${_("
Discount
Codes")}
<a
id=
"add_coupon_link"
href=
"#add-coupon-modal"
rel=
"leanModal"
class=
"add blue-button"
>
+ ${_("Add
Discount
Code")}
</a></span>
<span
class=
"tip"
>
${_("
Coupon
Codes")}
<a
id=
"add_coupon_link"
href=
"#add-coupon-modal"
rel=
"leanModal"
class=
"add blue-button"
>
+ ${_("Add
Coupon
Code")}
</a></span>
<div
class=
"wrapper-content wrapper"
>
<section
class=
"content"
>
%if len(section_data['coupons']):
<table
class=
"coupons-table"
>
<thead>
<tr
class=
"coupons-headings"
>
<th
class=
"c_code"
>
${_("
Discount
Code")}
</th>
<th
class=
"c_code"
>
${_("
Coupon
Code")}
</th>
<th
class=
"c_dsc"
>
${_("Description")}
</th>
<th
class=
"c_expiry"
>
${_("Expiration Date")}
</th>
<th
class=
"c_discount"
>
${_("
Discount
(%)")}
</th>
<th
class=
"c_discount"
>
${_("
Coupon
(%)")}
</th>
<th
class=
"c_count"
>
${_("Number Redeemed")}
</th>
<th
class=
"c_action"
>
${_("Actions")}
</th>
</tr>
...
...
@@ -536,7 +536,7 @@ import pytz
if
(
code
===
''
)
{
$
(
"#add_coupon_button"
).
removeAttr
(
'disabled'
);
$
(
'#add_coupon_form #coupon_form_error'
).
attr
(
'style'
,
'display: block !important'
);
$
(
'#add_coupon_form #coupon_form_error'
).
text
(
"${_('Enter a
discount
code.')}"
);
$
(
'#add_coupon_form #coupon_form_error'
).
text
(
"${_('Enter a
coupon
code.')}"
);
return
false
;
}
if
(
parseInt
(
coupon_discount
)
>
100
)
{
...
...
lms/templates/instructor/instructor_dashboard_2/edit_coupon_modal.html
View file @
99dfe98a
...
...
@@ -3,7 +3,7 @@ from django.utils.translation import ugettext as _
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
page
args=
"section_data"
/>
<section
id=
"edit-coupon-modal"
class=
"modal"
role=
"dialog"
tabindex=
"-1"
aria-label=
"${_('Edit Coupon')}"
>
<section
id=
"edit-coupon-modal"
class=
"modal"
role=
"dialog"
tabindex=
"-1"
aria-label=
"${_('Edit Coupon
Code
')}"
>
<div
class=
"inner-wrapper"
>
<button
class=
"close-modal"
>
<i
class=
"icon fa fa-remove"
></i>
...
...
@@ -15,12 +15,12 @@ from django.core.urlresolvers import reverse
<div
id=
"coupon-content"
>
<header>
<h2>
${_("
Update Coupon
")}
</h2>
<h2>
${_("
Edit Coupon Code
")}
</h2>
</header>
<div
class=
"instructions"
>
<p>
${_("
Update Coupon
Information")}
</p>
${_("
Edit Coupon Code
Information")}
</p>
</div>
<form
id=
"edit_coupon_form"
action=
"${section_data['ajax_update_coupon']}"
method=
"post"
data-remote=
"true"
>
...
...
@@ -62,7 +62,7 @@ from django.core.urlresolvers import reverse
<div
class=
"submit"
>
<input
type=
"hidden"
name=
"coupon_id"
id=
"coupon_id"
/>
<input
name=
"submit"
type=
"button"
id=
"update_coupon_button"
value=
"${_('Update Coupon')}"
/>
<input
name=
"submit"
type=
"button"
id=
"update_coupon_button"
value=
"${_('Update Coupon
Code
')}"
/>
</div>
</form>
</div>
...
...
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