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
156afb6d
Commit
156afb6d
authored
Mar 25, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate login dialog.
parent
8c1b7a71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
64 deletions
+7
-64
lms/templates/accounts_login.html
+7
-64
No files found.
lms/templates/accounts_login.html
View file @
156afb6d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
left
:
0
;
left
:
0
;
margin
:
100px
auto
;
margin
:
100px
auto
;
top
:
0
;
top
:
0
;
z-index
:
200
;
height
:
500px
;
}
}
.login-box
input
[
type
=
submit
]
{
.login-box
input
[
type
=
submit
]
{
...
@@ -18,75 +18,18 @@
...
@@ -18,75 +18,18 @@
height
:
auto
!important
;
height
:
auto
!important
;
}
}
#lean_overlay
{
display
:
block
;
position
:
fixed
;
left
:
0px
;
top
:
0px
;
z-index
:
100
;
width
:
100%
;
height
:
100%
;
}
</style>
</style>
</
%
block>
</
%
block>
<section
id=
"login-modal"
class=
"modal login-modal login-box"
>
<section
class=
'login-box'
></section>
<div
class=
"inner-wrapper"
>
<header>
<h2>
Log In
</h2>
<hr>
</header>
<form
id=
"login_form"
class=
"login_form"
method=
"post"
data-remote=
"true"
action=
"/login"
>
<label>
E-mail
</label>
<input
name=
"email"
type=
"email"
>
<label>
Password
</label>
<input
name=
"password"
type=
"password"
>
<label
class=
"remember-me"
>
<input
name=
"remember"
type=
"checkbox"
value=
"true"
>
Remember me
</label>
<div
class=
"submit"
>
<input
name=
"submit"
type=
"submit"
value=
"Access My Courses"
>
</div>
</form>
<section
class=
"login-extra"
>
<p>
<span>
Not enrolled?
<a
href=
"#signup-modal"
class=
"close-login"
rel=
"leanModal"
>
Sign up.
</a></span>
<a
href=
"#forgot-password-modal"
rel=
"leanModal"
class=
"pwd-reset"
>
Forgot password?
</a>
</p>
% if settings.MITX_FEATURES.get('AUTH_USE_OPENID'):
<p>
<a
href=
"${MITX_ROOT_URL}/openid/login/"
>
login via openid
</a>
</p>
% endif
</section>
<div
class=
"close-modal"
>
<div
class=
"inner"
>
<p>
✕
</p>
</div>
</div>
</div>
</section>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
(
function
()
{
(
function
()
{
$
(
document
).
delegate
(
'#login_form'
,
'ajax:success'
,
function
(
data
,
json
,
xhr
)
{
$
(
document
).
ready
(
if
(
json
.
success
)
{
function
()
{
next
=
getParameterByName
(
'next'
);
// show dialog
if
(
next
)
{
$
(
'#login'
).
click
();
location
.
href
=
next
;
}
else
{
location
.
href
=
"${reverse('dashboard')}"
;
}
}
else
{
if
(
$
(
'#login_error'
).
length
==
0
)
{
$
(
'#login_form'
).
prepend
(
'<div id="login_error" class="modal-form-error"></div>'
);
}
$
(
'#login_error'
).
html
(
json
.
value
).
stop
().
css
(
"display"
,
"block"
);
}
}
}
);
);
})(
this
)
})(
this
)
</script>
</script>
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