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
37d5d426
Commit
37d5d426
authored
Nov 09, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #90 from open-craft/qa-fixes
Fix a few layout issues in Step Builder
parents
ff271b2d
ff2bd315
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
28 deletions
+23
-28
problem_builder/mentoring.py
+1
-5
problem_builder/mixins.py
+1
-1
problem_builder/plot.py
+0
-4
problem_builder/public/css/problem-builder.css
+6
-5
problem_builder/public/js/container_edit.js
+5
-0
problem_builder/public/themes/apros.css
+6
-1
problem_builder/step.py
+0
-4
problem_builder/step_review.py
+0
-4
problem_builder/templates/html/mentoring_with_steps.html
+1
-1
problem_builder/templates/html/sb-review-score.html
+3
-3
No files found.
problem_builder/mentoring.py
View file @
37d5d426
...
...
@@ -501,7 +501,7 @@ class MentoringBlock(BaseMentoringBlock, StudioContainerXBlockMixin, StepParentM
# The student got this wrong. Check if there is a review tip to show.
tip_html
=
child
.
get_review_tip
()
if
tip_html
:
if
hasattr
(
self
.
runtime
,
'replace_jump_to_id_urls'
)
:
if
getattr
(
self
.
runtime
,
'replace_jump_to_id_urls'
,
None
)
is
not
None
:
tip_html
=
self
.
runtime
.
replace_jump_to_id_urls
(
tip_html
)
review_tips
.
append
(
tip_html
)
return
review_tips
...
...
@@ -1124,10 +1124,6 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
"""
Add some HTML to the author view that allows authors to add child blocks.
"""
context
[
'wrap_children'
]
=
{
'head'
:
u'<div class="mentoring">'
,
'tail'
:
u'</div>'
}
fragment
=
super
(
MentoringWithExplicitStepsBlock
,
self
)
.
author_edit_view
(
context
)
fragment
.
add_content
(
loader
.
render_template
(
'templates/html/mentoring_url_name.html'
,
{
"url_name"
:
self
.
url_name
...
...
problem_builder/mixins.py
View file @
37d5d426
...
...
@@ -106,7 +106,7 @@ class MessageParentMixin(object):
child
=
self
.
runtime
.
get_block
(
child_id
)
if
child
.
type
==
message_type
:
content
=
child
.
content
if
hasattr
(
self
.
runtime
,
'replace_jump_to_id_urls'
)
:
if
getattr
(
self
.
runtime
,
'replace_jump_to_id_urls'
,
None
)
is
not
None
:
content
=
self
.
runtime
.
replace_jump_to_id_urls
(
content
)
return
content
if
or_default
:
...
...
problem_builder/plot.py
View file @
37d5d426
...
...
@@ -350,10 +350,6 @@ class PlotBlock(StudioEditableXBlockMixin, StudioContainerWithNestedXBlocksMixin
"""
Add some HTML to the author view that allows authors to add child blocks.
"""
context
[
'wrap_children'
]
=
{
'head'
:
u'<div class="mentoring">'
,
'tail'
:
u'</div>'
}
fragment
=
super
(
PlotBlock
,
self
)
.
author_edit_view
(
context
)
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder-edit.css'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/util.js'
))
...
...
problem_builder/public/css/problem-builder.css
View file @
37d5d426
...
...
@@ -174,6 +174,7 @@
list-style
:
none
;
padding-left
:
0
!important
;
margin-left
:
0
;
margin-bottom
:
0.4em
;
}
.mentoring
.review-list
li
{
display
:
inline
;
...
...
@@ -184,7 +185,7 @@
}
.mentoring
.results-section
{
margin-left
:
4
0px
;
margin-left
:
5
0px
;
}
.mentoring
.results-section
p
{
...
...
@@ -202,21 +203,21 @@
display
:
none
;
}
.mentoring
.assessment-review-tips
p
.review-tips-intro
{
.mentoring
p
.review-tips-intro
{
margin-top
:
1.2em
;
margin-bottom
:
0
;
font-weight
:
bold
;
}
.mentoring
.
assessment-review-tips
.
review-tips-list
{
.mentoring
.review-tips-list
{
margin-top
:
0
;
padding-top
:
0
;
}
.mentoring
.
assessment-review-tips
.
review-tips-list
li
{
.mentoring
.review-tips-list
li
{
margin-left
:
0.5em
;
padding-left
:
0
;
}
.mentoring
.
assessment-review-tips
.
review-tips-list
li
p
{
.mentoring
.review-tips-list
li
p
{
display
:
inline
;
margin
:
0
;
}
...
...
problem_builder/public/js/container_edit.js
View file @
37d5d426
...
...
@@ -9,4 +9,9 @@ function ProblemBuilderContainerEdit(runtime, element) {
if
(
window
.
ProblemBuilderUtil
)
{
ProblemBuilderUtil
.
transformClarifications
(
element
);
}
// Add a "mentoring" class to the root XBlock so we can use it as a
// selector. We cannot just add a div.mentoring wrapper around our children
// since it breaks jQuery drag-and-drop re-ordering of children.
$
(
".wrapper-xblock.level-page > .xblock-render > .xblock"
).
addClass
(
"mentoring"
);
}
problem_builder/public/themes/apros.css
View file @
37d5d426
...
...
@@ -17,7 +17,12 @@
text-transform
:
uppercase
;
}
.themed-xblock.mentoring
.assessment-review-tips
.review-tips-list
li
{
.themed-xblock.mentoring
.sb-review-score
{
margin-left
:
40px
;
margin-top
:
15px
;
}
.themed-xblock.mentoring
.review-tips-list
li
{
margin-left
:
1.8em
;
padding-left
:
0
;
}
problem_builder/step.py
View file @
37d5d426
...
...
@@ -212,10 +212,6 @@ class MentoringStepBlock(
Add some HTML to the author view that allows authors to add child blocks.
"""
local_context
=
dict
(
context
)
local_context
[
'wrap_children'
]
=
{
'head'
:
u'<div class="mentoring">'
,
'tail'
:
u'</div>'
}
local_context
[
'author_edit_view'
]
=
True
fragment
=
super
(
MentoringStepBlock
,
self
)
.
author_edit_view
(
local_context
)
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder.css'
))
...
...
problem_builder/step_review.py
View file @
37d5d426
...
...
@@ -285,10 +285,6 @@ class ReviewStepBlock(
"""
Add some HTML to the author view that allows authors to add child blocks.
"""
context
[
'wrap_children'
]
=
{
'head'
:
u'<div class="mentoring">'
,
'tail'
:
u'</div>'
}
fragment
=
super
(
ReviewStepBlock
,
self
)
.
author_edit_view
(
context
)
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder.css'
))
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder-edit.css'
))
...
...
problem_builder/templates/html/mentoring_with_steps.html
View file @
37d5d426
...
...
@@ -14,7 +14,7 @@
{% endfor %}
<div
class=
"submit"
>
<span
class=
"step-overall-checkmark fa icon-2x"
></span>
<span
class=
"step-overall-checkmark fa icon-2x
fa-fw
"
></span>
<input
type=
"button"
class=
"input-main"
value=
"Submit"
disabled=
"disabled"
/>
<input
type=
"button"
class=
"input-next"
value=
"Next Step"
disabled=
"disabled"
/>
<input
type=
"button"
class=
"input-review"
value=
"Review grade"
disabled=
"disabled"
/>
...
...
problem_builder/templates/html/sb-review-score.html
View file @
37d5d426
...
...
@@ -9,7 +9,7 @@
<hr/>
<span
class=
"assessment-checkmark icon-2x checkmark-correct icon-ok fa fa-check"
></span>
<span
class=
"assessment-checkmark icon-2x checkmark-correct icon-ok fa fa-check
fa-fw
"
></span>
<div
class=
"results-section"
>
<p>
{% blocktrans count correct_answers=correct_answers %}
...
...
@@ -32,7 +32,7 @@
<div
class=
"clear"
></div>
<span
class=
"assessment-checkmark icon-2x checkmark-partially-correct icon-ok fa fa-check"
></span>
<span
class=
"assessment-checkmark icon-2x checkmark-partially-correct icon-ok fa fa-check
fa-fw
"
></span>
<div
class=
"results-section"
>
<p>
{% blocktrans count partially_correct_answers=partially_correct_answers %}
...
...
@@ -55,7 +55,7 @@
<div
class=
"clear"
></div>
<span
class=
"assessment-checkmark icon-2x checkmark-incorrect icon-exclamation fa fa-exclamation"
></span>
<span
class=
"assessment-checkmark icon-2x checkmark-incorrect icon-exclamation fa fa-exclamation
fa-fw
"
></span>
<div
class=
"results-section"
>
<p>
{% blocktrans count incorrect_answers=incorrect_answers %}
...
...
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