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
e7609597
Commit
e7609597
authored
Oct 10, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change text of registration to enrollment
parent
3f33fa4e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
39 deletions
+39
-39
lms/djangoapps/courseware/features/change_enrollment.feature
+1
-1
lms/djangoapps/courseware/features/registration.feature
+2
-2
lms/djangoapps/courseware/features/registration.py
+3
-3
lms/djangoapps/courseware/tests/test_views.py
+4
-4
lms/templates/courseware/mktg_course_about.html
+5
-5
lms/templates/dashboard.html
+3
-3
lms/templates/dashboard/_dashboard_course_listing.html
+21
-21
No files found.
lms/djangoapps/courseware/features/change_enrollment.feature
View file @
e7609597
...
...
@@ -19,5 +19,5 @@ Then I should be on the dashboard page
Then
2
"edx.course.enrollment.mode_changed"
server event is emitted
# don't emit another mode_changed event upon unenrollment
When
I un
register for
the course numbered
"6.002x"
When
I un
enroll from
the course numbered
"6.002x"
Then
2
"edx.course.enrollment.mode_changed"
server events is emitted
lms/djangoapps/courseware/features/registration.feature
View file @
e7609597
...
...
@@ -12,11 +12,11 @@ Feature: LMS.Register for a course
Then
I should see the course numbered
"6.002x"
in my dashboard
And
a
"edx.course.enrollment.activated"
server event is emitted
Scenario
:
I
can un
register for
a course
Scenario
:
I
can un
enroll from
a course
Given
I am registered for the course
"6.002x"
And
I visit the dashboard
Then
I should see the course numbered
"6.002x"
in my dashboard
When
I un
register for
the course numbered
"6.002x"
When
I un
enroll from
the course numbered
"6.002x"
Then
I should be on the dashboard page
And
I should see an empty dashboard message
And
I should NOT see the course numbered
"6.002x"
in my dashboard
...
...
lms/djangoapps/courseware/features/registration.py
View file @
e7609597
...
...
@@ -44,9 +44,9 @@ def i_should_see_that_course_in_my_dashboard(_step, doesnt_appear, course):
assert
world
.
is_css_present
(
course_link_css
)
@step
(
u'I un
register for
the course numbered "([^"]*)"'
)
def
i_un
register_for
_that_course
(
_step
,
course
):
@step
(
u'I un
enroll from
the course numbered "([^"]*)"'
)
def
i_un
enroll_from
_that_course
(
_step
,
course
):
unregister_css
=
'section.info a[href*="#unenroll-modal"][data-course-number*="
%
s"]'
%
course
world
.
css_click
(
unregister_css
)
button_css
=
'section#unenroll-modal input[value="Un
register
"]'
button_css
=
'section#unenroll-modal input[value="Un
enroll
"]'
world
.
css_click
(
button_css
)
lms/djangoapps/courseware/tests/test_views.py
View file @
e7609597
...
...
@@ -264,7 +264,7 @@ class ViewsTestCase(TestCase):
def
test_course_mktg_register
(
self
):
response
=
self
.
_load_mktg_about
()
self
.
assertIn
(
'
Register for
'
,
response
.
content
)
self
.
assertIn
(
'
Enroll in
'
,
response
.
content
)
self
.
assertNotIn
(
'and choose your student track'
,
response
.
content
)
def
test_course_mktg_register_multiple_modes
(
self
):
...
...
@@ -280,7 +280,7 @@ class ViewsTestCase(TestCase):
)
response
=
self
.
_load_mktg_about
()
self
.
assertIn
(
'
Register for
'
,
response
.
content
)
self
.
assertIn
(
'
Enroll in
'
,
response
.
content
)
self
.
assertIn
(
'and choose your student track'
,
response
.
content
)
# clean up course modes
CourseMode
.
objects
.
all
()
.
delete
()
...
...
@@ -291,7 +291,7 @@ class ViewsTestCase(TestCase):
# supports only English, override the language setting
# and use English.
response
=
self
.
_load_mktg_about
(
language
=
'eo'
)
self
.
assertContains
(
response
,
"
Register for
"
)
self
.
assertContains
(
response
,
"
Enroll in
"
)
@patch.dict
(
settings
.
FEATURES
,
{
'IS_EDX_DOMAIN'
:
False
})
def
test_mktg_about_language_openedx
(
self
):
...
...
@@ -299,7 +299,7 @@ class ViewsTestCase(TestCase):
# may want to support languages other than English,
# so respect the language code.
response
=
self
.
_load_mktg_about
(
language
=
'eo'
)
self
.
assertContains
(
response
,
u"
Régïstér för
"
.
encode
(
'utf-8'
))
self
.
assertContains
(
response
,
u"
Énröll ïn
"
.
encode
(
'utf-8'
))
def
test_submission_history_accepts_valid_ids
(
self
):
# log into a staff account
...
...
lms/templates/courseware/mktg_course_about.html
View file @
e7609597
...
...
@@ -49,26 +49,26 @@
%if show_courseware_link:
<a
class=
"action access-courseware"
href=
"${course_target}"
target=
"_top"
>
${_("Access Courseware")}
</a>
%else:
<div
class=
"action is-registered"
>
${_("You Are
Register
ed")}
</div>
<div
class=
"action is-registered"
>
${_("You Are
Enroll
ed")}
</div>
%endif
%elif allow_registration:
<a
class=
"action action-register register ${'has-option-verified' if len(course_modes) > 1 else ''}"
href=
"#"
>
${_("
Register for
")}
<strong>
${course.display_number_with_default | h}
</strong>
<a
class=
"action action-register register ${'has-option-verified' if len(course_modes) > 1 else ''}"
href=
"#"
>
${_("
Enroll in
")}
<strong>
${course.display_number_with_default | h}
</strong>
%if len(course_modes) > 1:
<span
class=
"track"
>
## Translators: This is the second line on a button users can click. The first line is "
Register for
COURSE_NAME"
## Translators: This is the second line on a button users can click. The first line is "
Enroll in
COURSE_NAME"
## The "choose your student track" means users can select between taking the course as an auditor, as a verified student, etc
${_("and choose your student track")}
</span>
%elif "professional" in course_modes:
<span
class=
"track"
>
## Translators: This is the second line on a button users can click. The first line is "
Register for
COURSE_NAME"
## Translators: This is the second line on a button users can click. The first line is "
Enroll in
COURSE_NAME"
## 'Verification' here refers to verifying one's identity in order to receive a verified certificate.
${_("and proceed to verification")}
</span>
%endif
</a>
%else:
<div
class=
"action registration-closed is-disabled"
>
${_("
Registration
Is Closed")}
</div>
<div
class=
"action registration-closed is-disabled"
>
${_("
Enrollment
Is Closed")}
</div>
%endif
</li>
</ul>
...
...
lms/templates/dashboard.html
View file @
e7609597
...
...
@@ -186,12 +186,12 @@
% else:
<section
class=
"empty-dashboard-message"
>
% if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
<p>
${_("Looks like you haven't
registered for
any courses yet.")}
</p>
<p>
${_("Looks like you haven't
enrolled in
any courses yet.")}
</p>
<a
href=
"${marketing_link('COURSES')}"
>
${_("Find courses now!")}
</a>
% else:
<p>
${_("Looks like you haven't
been
enrolled in any courses yet.")}
</p>
<p>
${_("Looks like you haven't enrolled in any courses yet.")}
</p>
%endif
</section>
% endif
...
...
@@ -389,7 +389,7 @@
<input
name=
"course_id"
id=
"unenroll_course_id"
type=
"hidden"
/>
<input
name=
"enrollment_action"
type=
"hidden"
value=
"unenroll"
/>
<div
class=
"submit"
>
<input
name=
"submit"
type=
"submit"
value=
"${_("
Un
register
")}"
/>
<input
name=
"submit"
type=
"submit"
value=
"${_("
Un
enroll
")}"
/>
</div>
</form>
</div>
...
...
lms/templates/dashboard/_dashboard_course_listing.html
View file @
e7609597
...
...
@@ -130,7 +130,7 @@
% if is_course_blocked:
<p
id=
"block-course-msg"
class=
"course-block"
>
${_('You can no longer access this course because payment has not yet been received. you can
<a
href=
"#"
>
contact the account holder
</a>
to request payment, or you can')}
<a
id=
"unregister_block_course"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
href=
"#unenroll-modal"
>
${_('un
register
')}
</a>
<a
id=
"unregister_block_course"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
href=
"#unenroll-modal"
>
${_('un
enroll
')}
</a>
${_('for this course.')}
</p>
%endif
...
...
@@ -154,64 +154,64 @@
% if is_paid_course and show_refund_option:
## Translators: The course's name will be added to the end of this sentence.
% if not is_course_blocked:
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
the
purchased
course
")}';
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
the
purchased
course
")}';
document
.
getElementById
('
refund-info
').
innerHTML=
gettext('You
will
be
refunded
the
amount
you
paid
.')"
>
${_('Un
register
')}
${_('Un
enroll
')}
</a>
% else:
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
the
purchased
course
")}';
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
the
purchased
course
")}';
document
.
getElementById
('
refund-info
').
innerHTML=
gettext('You
will
be
refunded
the
amount
you
paid
.')"
>
${_('Un
register
')}
${_('Un
enroll
')}
</a>
% endif
% elif is_paid_course and not show_refund_option:
## Translators: The course's name will be added to the end of this sentence.
% if not is_course_blocked:
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
the
purchased
course
")}';
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
the
purchased
course
")}';
document
.
getElementById
('
refund-info
').
innerHTML=
gettext('You
will
not
be
refunded
the
amount
you
paid
.')"
>
${_('Un
register
')}
${_('Un
enroll
')}
</a>
% else:
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
the
purchased
course
")}';
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
the
purchased
course
")}';
document
.
getElementById
('
refund-info
').
innerHTML=
gettext('You
will
not
be
refunded
the
amount
you
paid
.')"
>
${_('Un
register
')}
${_('Un
enroll
')}
</a>
% endif
% elif enrollment.mode != "verified":
## Translators: The course's name will be added to the end of this sentence.
% if not is_course_blocked:
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
")}';
document
.
getElementById
('
refund-info
').
innerHTML=
''
"
>
${_('Un
register
')}
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
")}';
document
.
getElementById
('
refund-info
').
innerHTML=
''
"
>
${_('Un
enroll
')}
</a>
% else:
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
")}';
document
.
getElementById
('
refund-info
').
innerHTML=
''
"
>
${_('Un
register
')}
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
")}';
document
.
getElementById
('
refund-info
').
innerHTML=
''
"
>
${_('Un
enroll
')}
</a>
% endif
% elif show_refund_option:
## Translators: The course's name will be added to the end of this sentence.
% if not is_course_blocked:
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
the
verified
{
cert_name_long
}
track
of
").
format
(
cert_name_long=
cert_name_long)}';
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
the
verified
{
cert_name_long
}
track
of
").
format
(
cert_name_long=
cert_name_long)}';
document
.
getElementById
('
refund-info
').
innerHTML=
gettext('You
will
be
refunded
the
amount
you
paid
.')"
>
${_('Un
register
')}
${_('Un
enroll
')}
</a>
% else:
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
the
verified
{
cert_name_long
}
track
of
").
format
(
cert_name_long=
cert_name_long)}';
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
the
verified
{
cert_name_long
}
track
of
").
format
(
cert_name_long=
cert_name_long)}';
document
.
getElementById
('
refund-info
').
innerHTML=
gettext('You
will
be
refunded
the
amount
you
paid
.')"
>
${_('Un
register
')}
${_('Un
enroll
')}
</a>
% endif
% else:
## Translators: The course's name will be added to the end of this sentence.
% if not is_course_blocked:
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
the
verified
{
cert_name_long
}
track
of
").
format
(
cert_name_long=
cert_name_long)}';
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
the
verified
{
cert_name_long
}
track
of
").
format
(
cert_name_long=
cert_name_long)}';
document
.
getElementById
('
refund-info
').
innerHTML=
gettext('The
refund
deadline
for
this
course
has
passed
,
so
you
will
not
receive
a
refund
.')"
>
${_('Un
register
')}
${_('Un
enroll
')}
</a>
% else:
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
register
from
the
verified
{
cert_name_long
}
track
of
").
format
(
cert_name_long=
cert_name_long)}';
<a
class=
"disable-look-unregister"
data-course-id=
"${course.id | h}"
data-course-number=
"${course.number | h}"
onclick=
"document.getElementById('track-info').innerHTML='${_("
Are
you
sure
you
want
to
un
enroll
from
the
verified
{
cert_name_long
}
track
of
").
format
(
cert_name_long=
cert_name_long)}';
document
.
getElementById
('
refund-info
').
innerHTML=
gettext('The
refund
deadline
for
this
course
has
passed
,
so
you
will
not
receive
a
refund
.')"
>
${_('Un
register
')}
${_('Un
enroll
')}
</a>
% endif
% endif
...
...
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