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
4c167818
Commit
4c167818
authored
Oct 30, 2012
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #992 from MITx/bug/cas/tom/user-not-found
moved error message into form area; tweaked cancel behavior
parents
763e4722
d63f82ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
cms/static/sass/_users.scss
+15
-0
cms/templates/manage_users.html
+9
-6
No files found.
cms/static/sass/_users.scss
View file @
4c167818
...
...
@@ -32,6 +32,21 @@
padding
:
15px
20px
;
background
:
$mediumGrey
;
#result
{
display
:
none
;
float
:
left
;
margin-bottom
:
15px
;
padding
:
3px
15px
;
border-radius
:
3px
;
background
:
$error-red
;
font-size
:
14px
;
color
:
#fff
;
}
.form-elements
{
clear
:
both
;
}
label
{
display
:
inline-block
;
margin-right
:
10px
;
...
...
cms/templates/manage_users.html
View file @
4c167818
...
...
@@ -20,9 +20,12 @@
</div>
%if allow_actions:
<div
class=
"new-user-form"
>
<label>
email:
</label><input
type=
"text"
id=
"email"
class=
"email-input"
autocomplete=
"off"
placeholder=
"email@example.com"
>
<a
href=
"#"
id=
"add_user"
class=
"add-button"
>
add user
</a>
<a
href=
"#"
class=
"cancel-button"
>
cancel
</a>
<div
id=
"result"
></div>
<div
class=
"form-elements"
>
<label>
email:
</label><input
type=
"text"
id=
"email"
class=
"email-input"
autocomplete=
"off"
placeholder=
"email@example.com"
>
<a
href=
"#"
id=
"add_user"
class=
"add-button"
>
add user
</a>
<a
href=
"#"
class=
"cancel-button"
>
cancel
</a>
</div>
</div>
%endif
<div>
...
...
@@ -42,8 +45,6 @@
% endfor
</ol>
</div>
<div
id=
"result"
></div>
</article>
</div>
</div>
...
...
@@ -61,6 +62,8 @@
function
hideNewUserForm
(
e
)
{
e
.
preventDefault
();
$newUserForm
.
slideUp
(
150
);
$
(
'#result'
).
hide
();
$
(
'#email'
).
val
(
''
);
}
$
(
document
).
ready
(
function
()
{
...
...
@@ -78,7 +81,7 @@
data
:
JSON
.
stringify
({
'email'
:
$
(
'#email'
).
val
()}),
}).
done
(
function
(
data
)
{
if
(
data
.
ErrMsg
!=
undefined
)
$
(
'#result'
).
empty
().
append
(
data
.
ErrMsg
);
$
(
'#result'
).
show
().
empty
().
append
(
data
.
ErrMsg
);
else
location
.
reload
();
})
...
...
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