Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
0365c76e
Commit
0365c76e
authored
Nov 02, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve usability of conditional messages in Studio, fix doctoring
parent
ee49a273
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
problem_builder/public/css/problem-builder-edit.css
+12
-1
problem_builder/step_review.py
+4
-2
No files found.
problem_builder/public/css/problem-builder-edit.css
View file @
0365c76e
...
...
@@ -50,7 +50,6 @@
cursor
:
default
;
}
.xblock
[
data-block-type
=
sb-review-step
]
.submission-message-help
p
,
.xblock
[
data-block-type
=
step-builder
]
.submission-message-help
p
,
.xblock
[
data-block-type
=
problem-builder
]
.submission-message-help
p
{
border-top
:
1px
solid
#ddd
;
...
...
@@ -60,6 +59,18 @@
padding-top
:
0.3em
;
}
.xblock
[
data-block-type
=
sb-review-step
]
.conditional-message-help
p
{
font-size
:
0.8em
;
font-style
:
italic
;
margin-bottom
:
0.4em
;
}
.xblock-preview_view-sb-conditional-message
{
border-top
:
1px
solid
#ddd
;
margin-top
:
1.3em
;
padding-top
:
0.2em
;
}
.xblock-author_view-pb-slider
.url-name-footer
{
margin
:
0
-20px
-20px
-20px
;
/* Counteract spacing from xblock-render wrapper. */
}
problem_builder/step_review.py
View file @
0365c76e
...
...
@@ -128,7 +128,7 @@ class ConditionalMessageBlock(
desc
+=
self
.
SCORE_CONDITIONS_DESCRIPTIONS
[
self
.
score_condition
]
+
"<br>"
if
self
.
num_attempts_condition
!=
self
.
ATTEMPTS_ANY
:
desc
+=
self
.
NUM_ATTEMPTS_COND_DESCRIPTIONS
[
self
.
num_attempts_condition
]
fragment
.
content
+=
u'<div class="submission-message-help"><p>{}</p></div>'
.
format
(
desc
)
fragment
.
content
=
u'<div class="conditional-message-help"><p>{}</p></div>'
.
format
(
desc
)
+
fragment
.
content
return
fragment
...
...
@@ -176,7 +176,9 @@ class ScoreSummaryBlock(XBlockWithTranslationServiceMixin, XBlockWithPreviewMixi
@XBlock.needs
(
"i18n"
)
class
PerQuestionFeedbackBlock
(
XBlockWithTranslationServiceMixin
,
XBlockWithPreviewMixin
,
NoSettingsMixin
,
XBlock
):
"""
Summaryize the score that the student earned.
Display any on-assessment-review-question messages.
These messages are defined within individual questions and are only displayed if the student
got that particular question wrong.
"""
CATEGORY
=
'sb-review-per-question-feedback'
STUDIO_LABEL
=
_
(
"Per-Question Feedback"
)
...
...
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