Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
e381eb15
Commit
e381eb15
authored
Mar 12, 2014
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding styling and markup for step loading-based errors
parent
b617ad3a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
3 deletions
+43
-3
apps/openassessment/templates/openassessmentblock/oa_base.html
+27
-0
apps/openassessment/xblock/static/css/openassessment.css
+0
-0
apps/openassessment/xblock/static/sass/oa/views/_oa-base.scss
+16
-3
No files found.
apps/openassessment/templates/openassessmentblock/oa_base.html
View file @
e381eb15
...
@@ -64,6 +64,33 @@
...
@@ -64,6 +64,33 @@
</header>
</header>
</li>
</li>
{% endfor %}
{% endfor %}
<li
class=
"openassessment__steps__step has--error"
>
<header
class=
"step__header"
>
<h2
class=
"step__title"
>
<span
class=
"step__counter"
></span>
<span
class=
"wrapper--copy"
>
<span
class=
"step__label"
>
Your Response
</span>
<div
class=
"message message--error message--error-server"
>
<div
class=
"message__content"
>
<p>
There was a problem communicating with the server. Please try again.
</p>
</div>
</div>
</span>
</h2>
<span
class=
"step__status"
>
<span
class=
"step__status__label"
>
This step's status:
</span>
<span
class=
"step__status__value"
>
<i
class=
"icon-warning-sign"
></i>
<span
class=
"copy"
>
Unable to Load
</span>
</span>
</span>
</span>
</header>
</li>
</ol>
</ol>
</div>
</div>
</div>
</div>
...
...
apps/openassessment/xblock/static/css/openassessment.css
View file @
e381eb15
This source diff could not be displayed because it is too large. You can
view the blob
instead.
apps/openassessment/xblock/static/sass/oa/views/_oa-base.scss
View file @
e381eb15
...
@@ -403,16 +403,29 @@
...
@@ -403,16 +403,29 @@
}
}
}
}
// STATE: step is saved
// STATE: has error
&
.is--saved
{
&
.has--error
{
.step__counter
:before
{
border-color
:
rgba
(
$color-error
,
0
.5
);
color
:
$color-error
;
}
.step__status__value
{
.step__status__value
{
background
:
$color-
primary
;
background
:
$color-
error
;
.copy
{
.copy
{
color
:
$white-t
;
color
:
$white-t
;
}
}
}
}
.step__label
{
color
:
$color-error
;
}
.message
{
}
}
}
}
}
...
...
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