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
71931bcf
Commit
71931bcf
authored
Mar 21, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n Inst Dash Membership tab
LMS-2357
parent
1fe68faf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
lms/static/coffee/src/instructor_dashboard/membership.coffee
+4
-3
lms/templates/instructor/instructor_dashboard_2/membership.html
+9
-7
No files found.
lms/static/coffee/src/instructor_dashboard/membership.coffee
View file @
71931bcf
...
...
@@ -69,8 +69,8 @@ class AuthListWidget extends MemberListWidget
super
$container
,
title
:
$container
.
data
'display-name'
info
:
$container
.
data
'info-text'
labels
:
[
"Username"
,
"Email"
,
"Revoke access"
]
add_placeholder
:
"Enter username or email"
labels
:
[
gettext
(
"Username"
),
gettext
(
"Email"
),
gettext
(
"Revoke access"
)
]
add_placeholder
:
gettext
(
"Enter username or email"
)
add_btn_label
:
$container
.
data
'add-button-label'
add_handler
:
(
input
)
=>
@
add_handler
input
...
...
@@ -116,7 +116,8 @@ class AuthListWidget extends MemberListWidget
# if there are members, show the list
# create revoke button and insert it into the row
$revoke_btn
=
$
'<div class="revoke"><i class="icon-remove-sign"></i> Revoke access</div>'
,
label_trans
=
gettext
(
"Revoke access"
)
$revoke_btn
=
$
_
.
template
(
'<div class="revoke"><i class="icon-remove-sign"></i> <%= label %></div>'
,
{
label
:
label_trans
}),
class
:
'revoke'
$revoke_btn
.
click
=>
@
modify_member_access
member
.
email
,
'revoke'
,
(
error
)
=>
...
...
lms/templates/instructor/instructor_dashboard_2/membership.html
View file @
71931bcf
...
...
@@ -71,7 +71,7 @@
${_("Note: Users must have an activated {platform_name} account before they can be enrolled as a beta tester.").format(platform_name=settings.PLATFORM_NAME)}
</label>
<textarea
rows=
"6"
cols=
"50"
name=
"student-emails-for-beta"
placeholder=
"${_("
Email
a
ddresses
")}"
spellcheck=
"false"
></textarea>
<textarea
rows=
"6"
cols=
"50"
name=
"student-emails-for-beta"
placeholder=
"${_("
Email
A
ddresses
")}"
spellcheck=
"false"
></textarea>
</p>
<div
class=
"enroll-option"
>
...
...
@@ -84,8 +84,8 @@
</div>
<div>
<input
type=
"button"
name=
"beta-testers"
class=
"enrollment-button"
value=
"${_("
Add
beta
tester
(
s
)
")}"
data-endpoint=
"${ section_data['modify_beta_testers_button_url'] }"
data-action=
"add"
>
<input
type=
"button"
name=
"beta-testers"
class=
"enrollment-button"
value=
"${_("
Remove
beta
tester
(
s
)
")}"
data-endpoint=
"${ section_data['modify_beta_testers_button_url'] }"
data-action=
"remove"
>
<input
type=
"button"
name=
"beta-testers"
class=
"enrollment-button"
value=
"${_("
Add
beta
tester
s
")}"
data-endpoint=
"${ section_data['modify_beta_testers_button_url'] }"
data-action=
"add"
>
<input
type=
"button"
name=
"beta-testers"
class=
"enrollment-button"
value=
"${_("
Remove
beta
tester
s
")}"
data-endpoint=
"${ section_data['modify_beta_testers_button_url'] }"
data-action=
"remove"
>
</div>
<div
class=
"request-response"
></div>
...
...
@@ -95,12 +95,14 @@
</div>
<div
class=
"vert-right member-lists-management"
>
## Translators: an "Administration List" is a list, such as Course Staff, that users can be added to.
<h2>
${_("Administration List Management")}
</h2>
<div
class=
"request-response-error"
></div>
<div
class=
"wrapper-member-select"
>
<label
for=
"member-lists-selector"
>
Select an Administrator Group:
</label>
## Translators: an "Administrator Group" is a group, such as Course Staff, that users can be added to.
<label
for=
"member-lists-selector"
>
${_("Select an Administrator Group:")}
</label>
<select
id=
"member-lists-selector"
class=
"member-lists-selector"
>
<option>
${_("Getting available lists...")}
</option>
</select>
...
...
@@ -150,7 +152,7 @@
"
privileges
.")}"
data-list-endpoint=
"${ section_data['list_course_role_members_url'] }"
data-modify-endpoint=
"${ section_data['modify_access_url'] }"
data-add-button-label=
"
Add ${_("
Beta
Tester
")}"
data-add-button-label=
"
${_("
Add
Beta
Tester
")}"
></div>
<div
class=
"auth-list-container"
...
...
@@ -162,7 +164,7 @@
"
They
CAN
add
/
delete
other
moderators
and
their
posts
are
marked
as
'
staff
'.")}"
data-list-endpoint=
"${ section_data['list_forum_members_url'] }"
data-modify-endpoint=
"${ section_data['update_forum_role_membership_url'] }"
data-add-button-label=
"
Add ${_("
Discussion
Admin
")}"
data-add-button-label=
"
${_("
Add
Discussion
Admin
")}"
></div>
%endif
...
...
@@ -189,7 +191,7 @@
"
Their
posts
are
marked
'
Community
TA
'.")}"
data-list-endpoint=
"${ section_data['list_forum_members_url'] }"
data-modify-endpoint=
"${ section_data['update_forum_role_membership_url'] }"
data-add-button-label=
"
Add ${_("
Community
TA
")}"
data-add-button-label=
"
${_("
Add
Community
TA
")}"
></div>
%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