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
d1891542
Commit
d1891542
authored
Jul 15, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4420 from Stanford-Online/kluo/fix-name-changes-template
Fix pending name changes template
parents
f86b031a
adc7c13f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lms/templates/name_changes.html
+10
-10
No files found.
lms/templates/name_changes.html
View file @
d1891542
...
...
@@ -3,24 +3,24 @@
<
%
inherit
file=
"main.html"
/>
<script>
function
name_confirm
(
id
)
{
postJSON
(
'/accept_name_change'
,{
"id"
:
id
},
$
.
post
(
'/accept_name_change'
,{
"id"
:
id
},
function
(
data
){
if
(
data
.
success
){
$
(
"#div"
+
id
).
html
(
$
{
_
(
"Accepted"
)}
);
$
(
"#div"
+
id
).
html
(
"${_('Accepted')}"
);
}
else
{
alert
(
$
{
_
(
'Error'
)}
);
}
}
alert
(
"${_('Error')}"
);
}
});
}
function
name_deny
(
id
)
{
postJSON
(
'/reject_name_change'
,{
"id"
:
id
},
$
.
post
(
'/reject_name_change'
,{
"id"
:
id
},
function
(
data
){
if
(
data
.
success
){
$
(
"#div"
+
id
).
html
(
$
{
_
(
"Rejected"
)}
);
$
(
"#div"
+
id
).
html
(
"${_('Rejected')}"
);
}
else
{
alert
(
$
{
_
(
'Error'
)}
);
}
}
alert
(
"${_('Error')}"
);
}
});
}
</script>
...
...
@@ -32,12 +32,12 @@ function name_deny(id) {
<table>
% for s in students:
<tr>
<td><a
href=
/profile/${s['uid']}
/
>
${s['old_name']}
</td>
<td><a
href=
"/profile/${s['uid']}"
/>
${s['old_name']}
</td>
<td>
${s['new_name']|h}
</td>
<td>
${s['email']|h}
</td>
<td>
${s['rationale']|h}
</td>
<td><span
id=
"div${s['cid']}"
><span
onclick=
"name_confirm(${s['cid']});"
>
[${_("Confirm")}]
</span>
<span
onclick=
"name_deny(${s['cid']});"
>
${_("[Reject]")}
</span></span></td></tr>
<span
onclick=
"name_deny(${s['cid']});"
>
[${_("Reject")}]
</span></span></td></tr>
% endfor
</table>
</section>
...
...
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