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
fd002344
Commit
fd002344
authored
Feb 08, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new styles for errors and added flash to show the user resubmitted the form
--HG-- branch : kf-login-errors
parent
95e7c2b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
login.html
+0
-1
marketing.html
+3
-1
sass/_leanmodal.scss
+7
-4
No files found.
login.html
View file @
fd002344
...
@@ -4,7 +4,6 @@ ${ error }
...
@@ -4,7 +4,6 @@ ${ error }
<div
id=
"login_div"
>
<div
id=
"login_div"
>
<h1>
Log in to MITx
</h1>
<h1>
Log in to MITx
</h1>
<form
id=
"login_form"
method=
"post"
>
<form
id=
"login_form"
method=
"post"
>
<div
id=
"login_error"
></div>
<ol>
<ol>
<li>
<li>
<label>
E-mail*
</label>
<label>
E-mail*
</label>
...
...
marketing.html
View file @
fd002344
...
@@ -122,8 +122,10 @@ $(document).ready(function(){
...
@@ -122,8 +122,10 @@ $(document).ready(function(){
function
(
json
)
{
function
(
json
)
{
if
(
json
.
success
)
{
if
(
json
.
success
)
{
location
.
href
=
"/courseware"
;
location
.
href
=
"/courseware"
;
}
else
if
(
$
(
'#login_error'
).
length
==
0
)
{
$
(
'#login_form'
).
prepend
(
'<div id="login_error">Email or password is incorrect.</div>'
);
}
else
{
}
else
{
$
(
'#login_error'
).
html
(
"Invalid Login"
);
$
(
'#login_error'
).
stop
().
css
(
"background-color"
,
"#933"
).
animate
({
backgroundColor
:
"#333"
},
2000
);
}
}
}
}
);
);
...
...
sass/_leanmodal.scss
View file @
fd002344
...
@@ -65,14 +65,17 @@ div.leanModal_box {
...
@@ -65,14 +65,17 @@ div.leanModal_box {
text-align
:
left
;
text-align
:
left
;
div
#enroll_error
,
div
#login_error
,
div
#pwd_error
{
div
#enroll_error
,
div
#login_error
,
div
#pwd_error
{
$error-color
:
#333
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
background-color
:
#F50200
;
background-color
:
$error-color
;
border
:
darken
(
$error-color
,
20%
);
color
:
#fff
;
color
:
#fff
;
text-shadow
:
0
1px
0
darken
(
$error-color
,
10%
);
font-family
:
"Open sans"
;
font-weight
:
bold
;
font-weight
:
bold
;
letter-spacing
:
1px
;
letter-spacing
:
1px
;
margin-bottom
:
lh
();
margin
:
(
-
(
lh
()))
(
-
(
lh
()))
lh
();
padding
:
lh
(
.2
);
padding
:
lh
(
.5
);
text-transform
:
uppercase
;
&
:empty
{
&
:empty
{
padding
:
0
;
padding
:
0
;
...
...
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