Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
7e9ebb09
Commit
7e9ebb09
authored
11 years ago
by
Valera Rozuvan
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused code that is over 2 years old.
parent
05ea675f
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/static/coffee/src/modal.coffee
+0
-6
0 additions, 6 deletions
lms/static/coffee/src/modal.coffee
lms/templates/login_modal.html
+0
-75
0 additions, 75 deletions
lms/templates/login_modal.html
with
0 additions
and
81 deletions
lms/static/coffee/src/modal.coffee
deleted
100644 → 0
+
0
−
6
View file @
05ea675f
class
@
Modal
initialize
:
(
options
)
->
@
el
=
options
[
'el'
]
render
:
->
@
el
.
hide
()
This diff is collapsed.
Click to expand it.
lms/templates/login_modal.html
deleted
100644 → 0
+
0
−
75
View file @
05ea675f
<
%!
from
django.utils.translation
import
ugettext
as
_
%
>
<
%!
from
django.core.urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<section
id=
"login-modal"
class=
"modal login-modal"
>
<div
class=
"inner-wrapper"
>
<button
class=
"close-modal"
>
<i
class=
"icon-remove"
></i>
<span
class=
"sr"
>
## Translators: this is a control to allow users to exit out of this modal interface (a menu or piece of UI that takes the full focus of the screen)
${_('Close')}
</span>
</button>
<header>
<h2>
${_("Log In")}
</h2>
<hr>
</header>
<form
id=
"login_form"
class=
"login_form"
method=
"post"
data-remote=
"true"
action=
"/login"
>
<label
for=
"login_email"
>
${_("E-mail")}
</label>
<input
id=
"login_email"
type=
"email"
name=
"email"
placeholder=
"e.g. yourname@domain.com"
/>
<label
for=
"login_password"
>
${_("Password")}
</label>
<input
id=
"login_password"
type=
"password"
name=
"password"
placeholder=
"••••••••"
/>
<label
for=
"login_remember_me"
class=
"remember-me"
>
<input
id=
"login_remember_me"
type=
"checkbox"
name=
"remember"
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.FEATURES.get('AUTH_USE_OPENID'):
<p>
<a
href=
"${EDX_ROOT_URL}/openid/login/"
>
${_('login via openid')}
</a>
</p>
% endif
</section>
</div>
</section>
<script
type=
"text/javascript"
>
(
function
()
{
$
(
document
).
delegate
(
'
#login_form
'
,
'
ajax:success
'
,
function
(
data
,
json
,
xhr
)
{
if
(
json
.
success
)
{
next
=
getParameterByName
(
'
next
'
);
if
(
next
)
{
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
"
);
}
});
// removing close link's default behavior
$
(
'
#login-modal .close-modal
'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
});
})(
this
)
</script>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment