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
a96a146b
Commit
a96a146b
authored
Oct 08, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed appearance of step links in extended feedback
parent
8e364314
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
9 deletions
+28
-9
doc/img/review-step-no-attempts-remaining-extended-feedback-on.png
+0
-0
problem_builder/public/css/problem-builder.css
+3
-3
problem_builder/public/themes/lms.css
+9
-2
problem_builder/templates/html/review_step.html
+9
-4
problem_builder/tests/integration/test_step_builder.py
+7
-0
No files found.
doc/img/review-step-no-attempts-remaining-extended-feedback-on.png
View replaced file @
8e364314
View file @
a96a146b
34.6 KB
|
W:
|
H:
56.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
problem_builder/public/css/problem-builder.css
View file @
a96a146b
...
@@ -126,7 +126,6 @@
...
@@ -126,7 +126,6 @@
.mentoring
.grade
.checkmark-incorrect
{
.mentoring
.grade
.checkmark-incorrect
{
margin-left
:
10px
;
margin-left
:
10px
;
margin-right
:
20px
;
}
}
.mentoring
input
[
type
=
button
],
.mentoring
input
[
type
=
button
],
...
@@ -159,11 +158,12 @@
...
@@ -159,11 +158,12 @@
}
}
.mentoring
.results-section
{
.mentoring
.results-section
{
float
:
left
;
margin-left
:
40px
;
}
}
.mentoring
.results-section
p
{
.mentoring
.results-section
p
{
margin
:
4px
;
margin-bottom
:
4px
;
padding-top
:
4px
;
}
}
.mentoring
.clear
{
.mentoring
.clear
{
...
...
problem_builder/public/themes/lms.css
View file @
a96a146b
...
@@ -102,4 +102,12 @@ div.course-wrapper section.course-content .themed-xblock.mentoring p:empty {
...
@@ -102,4 +102,12 @@ div.course-wrapper section.course-content .themed-xblock.mentoring p:empty {
.themed-xblock.mentoring
.choice.incorrect
.choice-tips-container.active
{
.themed-xblock.mentoring
.choice.incorrect
.choice-tips-container.active
{
border-color
:
#c1373f
;
border-color
:
#c1373f
;
}
}
\ No newline at end of file
.themed-xblock.mentoring
.review-list
{
margin-top
:
0
;
}
.themed-xblock.mentoring
.grade
.grade-result
.results-section
p
{
margin-bottom
:
4px
;
/* Override LMS rule 'div.course-wrapper section.course-content p { margin-bottom: huge; }' */
}
problem_builder/templates/html/review_step.html
View file @
a96a146b
...
@@ -57,11 +57,16 @@
...
@@ -57,11 +57,16 @@
<!-- Template for extended feedback: Show extended feedback details when all attempts are used up. -->
<!-- Template for extended feedback: Show extended feedback details when all attempts are used up. -->
<script
type=
"text/template"
id=
"xblock-step-links-template"
>
<script
type=
"text/template"
id=
"xblock-step-links-template"
>
<%
var
q
,
last_question
;
%>
<%
var
q
,
last_question
,
second_last_question
;
%>
<
ul
class
=
"review-list <%= correctness %>-list"
>
<
ul
class
=
"review-list <%= correctness %>-list"
>
<%
for
(
var
question
in
questions
)
{{
q
=
questions
[
question
];
last_question
=
question
==
questions
.
length
-
1
;
%>
<%
for
(
var
question
in
questions
)
{
%>
<
li
><
a
href
=
"#"
class
=
"step-link"
data
-
step
=
"<%= q.step %>"
><%=
_
.
template
(
gettext
(
"Question {number}"
),
{
number
:
q
.
number
},
{
interpolate
:
/
\{(
.+
?)\}
/g
})
%><
/a></
li
>
<%
q
=
questions
[
question
];
last_question
=
question
==
questions
.
length
-
1
;
second_last_question
=
question
==
questions
.
length
-
2
;
%>
<%
}}
%>
<
li
>
<
a
href
=
"#"
class
=
"step-link"
data
-
step
=
"<%= q.step %>"
><%=
_
.
template
(
gettext
(
"Question {number}"
),
{
number
:
q
.
number
},
{
interpolate
:
/
\{(
.+
?)\}
/g
})
%><
/a><% if
(
!last_question
)
{ %><%=
(
questions.length > 2
?
", " : ""
)
%><%=
(
second_last_question
?
gettext
(
" and"
)
: ""
)
%><% } %
>
<
/li
>
<%
}
%>
<
/ul
>
<
/ul
>
</script>
</script>
...
...
problem_builder/tests/integration/test_step_builder.py
View file @
a96a146b
...
@@ -264,6 +264,8 @@ class StepBuilderTest(MentoringAssessmentBaseTest):
...
@@ -264,6 +264,8 @@ class StepBuilderTest(MentoringAssessmentBaseTest):
"num_attempts"
:
1
,
"max_attempts"
:
max_attempts
"num_attempts"
:
1
,
"max_attempts"
:
max_attempts
}
}
self
.
peek_at_review
(
step_builder
,
controls
,
expected_results
,
extended_feedback
=
extended_feedback
)
self
.
peek_at_review
(
step_builder
,
controls
,
expected_results
,
extended_feedback
=
extended_feedback
)
if
extended_feedback
and
max_attempts
==
1
:
self
.
assertIn
(
"Question 1 and Question 3"
,
step_builder
.
find_element_by_css_selector
(
'.correct-list'
)
.
text
)
if
max_attempts
==
1
:
if
max_attempts
==
1
:
self
.
assert_message_text
(
step_builder
,
"On review message text"
)
self
.
assert_message_text
(
step_builder
,
"On review message text"
)
...
@@ -302,6 +304,11 @@ class StepBuilderTest(MentoringAssessmentBaseTest):
...
@@ -302,6 +304,11 @@ class StepBuilderTest(MentoringAssessmentBaseTest):
"num_attempts"
:
2
,
"max_attempts"
:
max_attempts
"num_attempts"
:
2
,
"max_attempts"
:
max_attempts
}
}
self
.
peek_at_review
(
step_builder
,
controls
,
expected_results
,
extended_feedback
=
extended_feedback
)
self
.
peek_at_review
(
step_builder
,
controls
,
expected_results
,
extended_feedback
=
extended_feedback
)
if
extended_feedback
and
max_attempts
==
2
:
self
.
assertIn
(
"Question 1, Question 2, and Question 4"
,
step_builder
.
find_element_by_css_selector
(
'.correct-list'
)
.
text
)
if
max_attempts
==
2
:
if
max_attempts
==
2
:
self
.
assert_disabled
(
controls
.
try_again
)
self
.
assert_disabled
(
controls
.
try_again
)
...
...
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