Commit 2d9110dd by Tim Krones

Rename: pb-mentoring -> step-builder; pb-mentoring-step -> sb-step.

parent be0c46aa
/* 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;
......
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;
......
...@@ -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(
......
<div class="pb-step"> <div class="sb-step">
{% if show_title %} {% if show_title %}
<div class="title"> <div class="title">
<h3> <h3>
......
...@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment