From e18fa2f489d4b6a4a8d1fc188c0d36c6f333afb9 Mon Sep 17 00:00:00 2001 From: Amir Qayyum Khan Date: Thu, 23 Jul 2015 13:00:21 +0500 Subject: [PATCH] Fixed explicit labels related issues on CCX coach dashboard and membershp team management to fix #21 --- .../instructor_dashboard/membership.coffee | 2 +- lms/static/js/ccx/schedule.js | 1 - lms/templates/ccx/enrollment.html | 26 ++++++++++--------- lms/templates/ccx/schedule.html | 22 ++++++++-------- lms/templates/ccx/schedule.underscore | 2 +- .../instructor_dashboard_2/membership.html | 5 ++-- 6 files changed, 30 insertions(+), 28 deletions(-) diff --git a/lms/static/coffee/src/instructor_dashboard/membership.coffee b/lms/static/coffee/src/instructor_dashboard/membership.coffee index 4dc86bc849..15cd69d146 100644 --- a/lms/static/coffee/src/instructor_dashboard/membership.coffee +++ b/lms/static/coffee/src/instructor_dashboard/membership.coffee @@ -117,7 +117,7 @@ class AuthListWidget extends MemberListWidget # create revoke button and insert it into the row label_trans = gettext("Revoke access") - $revoke_btn = $ _.template('
<%= label %>
', {label: label_trans}), + $revoke_btn = $ _.template('
<%= label %>
', {label: label_trans}), class: 'revoke' $revoke_btn.click => @modify_member_access member.email, 'revoke', (error) => diff --git a/lms/static/js/ccx/schedule.js b/lms/static/js/ccx/schedule.js index fa50bf67c4..20ffdc1c38 100644 --- a/lms/static/js/ccx/schedule.js +++ b/lms/static/js/ccx/schedule.js @@ -306,7 +306,6 @@ var edx = edx || {}; row.removeClass('expanded').addClass('collapsed'); children.hide(); } - else { $(this).attr('aria-expanded', 'true'); $(this).find(".fa-caret-right").removeClass('fa-caret-right').addClass('fa-caret-down'); diff --git a/lms/templates/ccx/enrollment.html b/lms/templates/ccx/enrollment.html index 15ea3d86a3..2d054da3e4 100644 --- a/lms/templates/ccx/enrollment.html +++ b/lms/templates/ccx/enrollment.html @@ -4,19 +4,20 @@

${_("Batch Enrollment")}

-

-

${_("Enter email addresses and/or usernames separated by new lines or commas.")} - ${_("You will not get notification for emails that bounce, so please double-check spelling.")} - + ${_("You will not get notification for emails that bounce, so please double-check spelling.")}

+ +
- +
-

+

${_("If this option is checked, users who have not yet registered for {platform_name} will be automatically enrolled.").format(platform_name=settings.PLATFORM_NAME)} ${_("If this option is left unchecked, users who have not yet registered for {platform_name} will not be enrolled, but will be allowed to enroll once they make an account.").format(platform_name=settings.PLATFORM_NAME)}

@@ -26,11 +27,11 @@

- + @@ -45,7 +46,7 @@
-
+
@@ -65,17 +66,18 @@ ${member.user} ${member.user.email} -
Revoke access
+
Revoke access
%endfor
- + +
-
+ diff --git a/lms/templates/ccx/schedule.html b/lms/templates/ccx/schedule.html index a8cfe9b5d4..0c52ddbbeb 100644 --- a/lms/templates/ccx/schedule.html +++ b/lms/templates/ccx/schedule.html @@ -42,10 +42,10 @@
## Translators: This explains to people using a screen reader how to interpret the format of YYYY-MM-DD - + ## Translators: This explains to people using a screen reader how to interpret the format of HH:MM - +
@@ -60,7 +60,7 @@ aria-labelledby="ccx_schedule_save_changes_heading">

${_('Save changes')}

-

${_("You have unsaved changes.")}

+

${_("You have unsaved changes.")}


@@ -69,26 +69,26 @@

${_('Error')}

-

${_("There was an error saving changes.")}

+

${_("There was an error saving changes.")}

${_('Schedule a Unit')}

- +
- +
- +
-
-
diff --git a/lms/templates/ccx/schedule.underscore b/lms/templates/ccx/schedule.underscore index 4bfa3ab622..11b21c372d 100644 --- a/lms/templates/ccx/schedule.underscore +++ b/lms/templates/ccx/schedule.underscore @@ -14,7 +14,7 @@ <%- gettext('Start Date') %> <%- gettext('Due Date') %> diff --git a/lms/templates/instructor/instructor_dashboard_2/membership.html b/lms/templates/instructor/instructor_dashboard_2/membership.html index 360e9536b3..03fb666144 100644 --- a/lms/templates/instructor/instructor_dashboard_2/membership.html +++ b/lms/templates/instructor/instructor_dashboard_2/membership.html @@ -25,7 +25,8 @@ from openedx.core.djangoapps.course_groups.partition_scheme import get_cohorted_
- + +
@@ -154,7 +155,7 @@ from openedx.core.djangoapps.course_groups.partition_scheme import get_cohorted_
%endif -
+
## Translators: an "Administration List" is a list, such as Course Staff, that users can be added to.

${_("Course Team Management")}