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
56b8353d
Commit
56b8353d
authored
Feb 05, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - soft landing: refined sign in/up error states visually
parent
b0d843e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
9 deletions
+43
-9
cms/static/sass/_account.scss
+38
-2
cms/templates/login.html
+3
-5
cms/templates/signup.html
+2
-2
No files found.
cms/static/sass/_account.scss
View file @
56b8353d
...
...
@@ -244,4 +244,41 @@
}
}
//
@
include
transition
(
all
1s
ease-in-out
)
;
\ No newline at end of file
// messages
.message
{
@include
font-size
(
14
);
display
:
block
;
}
.message-status
{
display
:
none
;
@include
border-top-radius
(
2px
);
@include
box-sizing
(
border-box
);
border-bottom
:
2px
solid
$yellow-d2
;
margin
:
0
0
$baseline
0
;
padding
:
(
$baseline
/
2
)
$baseline
;
font-weight
:
500
;
background
:
$yellow-d1
;
color
:
$white
;
.ss-icon
{
position
:
relative
;
top
:
3px
;
@include
font-size
(
16
);
display
:
inline-block
;
margin-right
:
(
$baseline
/
2
);
}
.text
{
display
:
inline-block
;
}
&
.error
{
border-color
:
shade
(
$red
,
50%
);
background
:
tint
(
$red
,
20%
);
}
&
.is-shown
{
display
:
block
;
}
}
cms/templates/login.html
View file @
56b8353d
...
...
@@ -14,8 +14,6 @@
<article
class=
"content-primary"
role=
"main"
>
<form
id=
"login_form"
method=
"post"
action=
"login_post"
>
<div
id=
"login_error"
name=
"login_error"
class=
"message message-status message-status-error"
>
</div>
<fieldset>
<legend
class=
"sr"
>
Required Information to Sign into edX Studio
</legend>
...
...
@@ -81,10 +79,10 @@
if
(
json
.
success
)
{
location
.
href
=
"${reverse('index')}"
;
}
else
if
(
$
(
'#login_error'
).
length
==
0
)
{
$
(
'#login_form'
).
prepend
(
'<div id="login_error"
>'
+
json
.
value
+
'
</div>'
);
$
(
'#login_error'
).
slideDown
(
150
);
$
(
'#login_form'
).
prepend
(
'<div id="login_error"
class="message message-status error">'
+
json
.
value
+
'</span>
</div>'
);
$
(
'#login_error'
).
addClass
(
'is-shown'
);
}
else
{
$
(
'#login_error'
).
stop
().
slideDown
(
150
);
$
(
'#login_error'
).
stop
().
addClass
(
'is-shown'
);
$
(
'#login_error'
).
html
(
json
.
value
);
}
}
...
...
cms/templates/signup.html
View file @
56b8353d
...
...
@@ -17,7 +17,7 @@
<article
class=
"content-primary"
role=
"main"
>
<form
id=
"register_form"
method=
"post"
action=
"register_post"
>
<div
id=
"register_error"
name=
"register_error"
class=
"message message-status message-status
-
error"
>
<div
id=
"register_error"
name=
"register_error"
class=
"message message-status message-status
error"
>
</div>
<fieldset>
...
...
@@ -131,7 +131,7 @@
if
(
json
.
success
)
{
location
.
href
=
"${reverse('index')}"
;
}
else
{
$
(
'#register_error'
).
html
(
json
.
value
).
stop
().
slideDown
(
150
);
$
(
'#register_error'
).
html
(
json
.
value
).
stop
().
addClass
(
'is-shown'
);
}
}
);
...
...
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