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
9923323f
Commit
9923323f
authored
Sep 06, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styled new post error messages
parent
8529ef35
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
4 deletions
+25
-4
lms/static/coffee/src/discussion/utils.coffee
+1
-1
lms/static/images/white-error-icon.png
+0
-0
lms/static/sass/_discussion.scss
+22
-0
lms/templates/discussion/_new_post.html
+2
-3
No files found.
lms/static/coffee/src/discussion/utils.coffee
View file @
9923323f
...
...
@@ -127,7 +127,7 @@ class @DiscussionUtil
if
response
.
errors
?
and
response
.
errors
.
length
>
0
errorsField
.
empty
()
for
error
in
response
.
errors
errorsField
.
append
(
$
(
"<li>"
).
addClass
(
"new-post-form-error"
).
html
(
error
))
errorsField
.
append
(
$
(
"<li>"
).
addClass
(
"new-post-form-error"
).
html
(
error
))
.
show
()
@
clearFormErrors
:
(
errorsField
)
->
errorsField
.
empty
()
...
...
lms/static/images/white-error-icon.png
0 → 100644
View file @
9923323f
1.08 KB
lms/static/sass/_discussion.scss
View file @
9923323f
...
...
@@ -211,6 +211,28 @@
body
.discussion
{
.new-post-form-errors
{
display
:
none
;
background
:
$error-red
;
padding
:
0
;
border
:
1px
solid
#333
;
list-style
:
none
;
color
:
#fff
;
line-height
:
1
.6
;
border-radius
:
3px
;
@include
box-shadow
(
0
1px
2px
rgba
(
0
,
0
,
0
,
0
.3
)
inset
,
0
1px
0
rgba
(
255
,
255
,
255
,
.2
));
li
{
padding
:
10px
20px
12px
45px
;
border-bottom
:
1px
solid
#dc4949
;
background
:
url(../images/white-error-icon.png)
no-repeat
15px
14px
;
&
:last-child
{
border-bottom
:
none
;
}
}
}
.course-tabs
.right
{
float
:
right
;
...
...
lms/templates/discussion/_new_post.html
View file @
9923323f
...
...
@@ -22,9 +22,7 @@
</
%
def>
<article
class=
"new-post-article"
>
<div
class=
"inner-wrapper"
>
<div
class=
"new-post-form-errors"
>
</div>
<div
class=
"inner-wrapper"
>
<form
class=
"new-post-form"
>
<div
class=
"left-column"
>
<label>
Create new post in:
</label>
...
...
@@ -46,6 +44,7 @@
</div>
</div>
<div
class=
"right-column"
>
<ul
class=
"new-post-form-errors"
></ul>
<div
class=
"form-row"
>
<input
type=
"text"
class=
"new-post-title"
name=
"title"
placeholder=
"Title"
>
</div>
...
...
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