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
2d9110dd
Commit
2d9110dd
authored
Sep 22, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename: pb-mentoring -> step-builder; pb-mentoring-step -> sb-step.
parent
be0c46aa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
problem_builder/public/css/problem-builder-edit.css
+11
-11
problem_builder/public/js/mentoring_with_steps.js
+1
-1
problem_builder/step.py
+1
-1
problem_builder/templates/html/step.html
+1
-1
setup.py
+2
-2
No files found.
problem_builder/public/css/problem-builder-edit.css
View file @
2d9110dd
/* Display of url_name below content */
/* Display of url_name below content */
.xblock
[
data-block-type
=
pb-mentoring
-step
]
.url-name-footer
,
.xblock
[
data-block-type
=
sb
-step
]
.url-name-footer
,
.xblock
[
data-block-type
=
pb-mentoring
]
.url-name-footer
,
.xblock
[
data-block-type
=
step-builder
]
.url-name-footer
,
.xblock
[
data-block-type
=
problem-builder
]
.url-name-footer
,
.xblock
[
data-block-type
=
problem-builder
]
.url-name-footer
,
.xblock
[
data-block-type
=
mentoring
]
.url-name-footer
{
.xblock
[
data-block-type
=
mentoring
]
.url-name-footer
{
font-style
:
italic
;
font-style
:
italic
;
}
}
.xblock
[
data-block-type
=
pb-mentoring
-step
]
.url-name-footer
.url-name
,
.xblock
[
data-block-type
=
sb
-step
]
.url-name-footer
.url-name
,
.xblock
[
data-block-type
=
pb-mentoring
]
.url-name-footer
.url-name
,
.xblock
[
data-block-type
=
step-builder
]
.url-name-footer
.url-name
,
.xblock
[
data-block-type
=
problem-builder
]
.url-name-footer
.url-name
,
.xblock
[
data-block-type
=
problem-builder
]
.url-name-footer
.url-name
,
.xblock
[
data-block-type
=
mentoring
]
.url-name-footer
.url-name
{
.xblock
[
data-block-type
=
mentoring
]
.url-name-footer
.url-name
{
margin
:
0
10px
;
margin
:
0
10px
;
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
}
}
/* Custom appearance for our "Add" buttons */
/* Custom appearance for our "Add" buttons */
.xblock
[
data-block-type
=
pb-mentoring
-step
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button
,
.xblock
[
data-block-type
=
sb
-step
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button
,
.xblock
[
data-block-type
=
pb-mentoring
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button
,
.xblock
[
data-block-type
=
step-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button
,
.xblock
[
data-block-type
=
problem-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button
,
.xblock
[
data-block-type
=
problem-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button
,
.xblock
[
data-block-type
=
mentoring
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button
{
.xblock
[
data-block-type
=
mentoring
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button
{
width
:
200px
;
width
:
200px
;
...
@@ -24,10 +24,10 @@
...
@@ -24,10 +24,10 @@
line-height
:
30px
;
line-height
:
30px
;
}
}
.xblock
[
data-block-type
=
pb-mentoring
-step
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
,
.xblock
[
data-block-type
=
sb
-step
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
,
.xblock
[
data-block-type
=
pb-mentoring
-step
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
:hover
,
.xblock
[
data-block-type
=
sb
-step
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
:hover
,
.xblock
[
data-block-type
=
pb-mentoring
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
,
.xblock
[
data-block-type
=
step-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
,
.xblock
[
data-block-type
=
pb-mentoring
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
:hover
,
.xblock
[
data-block-type
=
step-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
:hover
,
.xblock
[
data-block-type
=
problem-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
,
.xblock
[
data-block-type
=
problem-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
,
.xblock
[
data-block-type
=
problem-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
:hover
,
.xblock
[
data-block-type
=
problem-builder
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
:hover
,
.xblock
[
data-block-type
=
mentoring
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
,
.xblock
[
data-block-type
=
mentoring
]
.add-xblock-component
.new-component
.new-component-type
.add-xblock-component-button.disabled
,
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
cursor
:
default
;
cursor
:
default
;
}
}
.xblock
[
data-block-type
=
pb-mentoring
]
.submission-message-help
p
,
.xblock
[
data-block-type
=
step-builder
]
.submission-message-help
p
,
.xblock
[
data-block-type
=
problem-builder
]
.submission-message-help
p
{
.xblock
[
data-block-type
=
problem-builder
]
.submission-message-help
p
{
border-top
:
1px
solid
#ddd
;
border-top
:
1px
solid
#ddd
;
font-size
:
0.85em
;
font-size
:
0.85em
;
...
...
problem_builder/public/js/mentoring_with_steps.js
View file @
2d9110dd
function
MentoringWithStepsBlock
(
runtime
,
element
)
{
function
MentoringWithStepsBlock
(
runtime
,
element
)
{
var
steps
=
runtime
.
children
(
element
).
filter
(
var
steps
=
runtime
.
children
(
element
).
filter
(
function
(
c
)
{
return
c
.
element
.
className
.
indexOf
(
'
pb-mentoring
-step'
)
>
-
1
;
}
function
(
c
)
{
return
c
.
element
.
className
.
indexOf
(
'
sb
-step'
)
>
-
1
;
}
);
);
var
activeStep
=
$
(
'.mentoring'
,
element
).
data
(
'active-step'
);
var
activeStep
=
$
(
'.mentoring'
,
element
).
data
(
'active-step'
);
var
checkmark
,
submitDOM
,
nextDOM
,
tryAgainDOM
,
submitXHR
;
var
checkmark
,
submitDOM
,
nextDOM
,
tryAgainDOM
,
submitXHR
;
...
...
problem_builder/step.py
View file @
2d9110dd
...
@@ -79,7 +79,7 @@ class MentoringStepBlock(
...
@@ -79,7 +79,7 @@ class MentoringStepBlock(
"""
"""
CAPTION
=
_
(
u"Step"
)
CAPTION
=
_
(
u"Step"
)
STUDIO_LABEL
=
_
(
u"Mentoring Step"
)
STUDIO_LABEL
=
_
(
u"Mentoring Step"
)
CATEGORY
=
'
pb-mentoring
-step'
CATEGORY
=
'
sb
-step'
# Settings
# Settings
display_name
=
String
(
display_name
=
String
(
...
...
problem_builder/templates/html/step.html
View file @
2d9110dd
<div
class=
"
p
b-step"
>
<div
class=
"
s
b-step"
>
{% if show_title %}
{% if show_title %}
<div
class=
"title"
>
<div
class=
"title"
>
<h3>
<h3>
...
...
setup.py
View file @
2d9110dd
...
@@ -41,8 +41,8 @@ def package_data(pkg, root_list):
...
@@ -41,8 +41,8 @@ def package_data(pkg, root_list):
BLOCKS
=
[
BLOCKS
=
[
'problem-builder = problem_builder:MentoringBlock'
,
'problem-builder = problem_builder:MentoringBlock'
,
'
pb-mentoring
= problem_builder:MentoringWithExplicitStepsBlock'
,
'
step-builder
= problem_builder:MentoringWithExplicitStepsBlock'
,
'
pb-mentoring
-step = problem_builder:MentoringStepBlock'
,
'
sb
-step = problem_builder:MentoringStepBlock'
,
'pb-table = problem_builder:MentoringTableBlock'
,
'pb-table = problem_builder:MentoringTableBlock'
,
'pb-column = problem_builder:MentoringTableColumn'
,
'pb-column = problem_builder:MentoringTableColumn'
,
...
...
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