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
568115bb
Commit
568115bb
authored
Aug 30, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add question-title class to templates
parent
f9176c1c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
mentoring/mentoring.py
+10
-0
mentoring/templates/html/mcqblock_choices.html
+1
-1
mentoring/templates/html/mcqblock_rating.html
+4
-1
mentoring/templates/html/mrqblock_choices.html
+1
-2
No files found.
mentoring/mentoring.py
View file @
568115bb
...
@@ -113,12 +113,22 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -113,12 +113,22 @@ class MentoringBlock(XBlockWithLightChildren):
return
(
score
,
int
(
round
(
score
*
100
)),
correct
,
incorrect
)
return
(
score
,
int
(
round
(
score
*
100
)),
correct
,
incorrect
)
def
_index_steps
(
self
):
index
=
1
for
child
in
self
.
steps
:
child
.
index
=
index
index
+=
1
def
student_view
(
self
,
context
):
def
student_view
(
self
,
context
):
self
.
_index_steps
()
fragment
,
named_children
=
self
.
get_children_fragment
(
fragment
,
named_children
=
self
.
get_children_fragment
(
context
,
view_name
=
'mentoring_view'
,
context
,
view_name
=
'mentoring_view'
,
not_instance_of
=
(
MentoringMessageBlock
,
TitleBlock
,
SharedHeaderBlock
)
not_instance_of
=
(
MentoringMessageBlock
,
TitleBlock
,
SharedHeaderBlock
)
)
)
fragment
.
add_content
(
render_template
(
'templates/html/mentoring.html'
,
{
fragment
.
add_content
(
render_template
(
'templates/html/mentoring.html'
,
{
'self'
:
self
,
'self'
:
self
,
'named_children'
:
named_children
,
'named_children'
:
named_children
,
...
...
mentoring/templates/html/mcqblock_choices.html
View file @
568115bb
<fieldset
class=
"choices questionnaire"
>
<fieldset
class=
"choices questionnaire"
>
<legend
class=
"question"
>
<legend
class=
"question"
>
<h3>
QUESTION {{ self.index }}
</h3>
<h3
class=
"question-title"
>
QUESTION {{ self.index }}
</h3>
<p>
{{ self.question }}
</p>
<p>
{{ self.question }}
</p>
</legend>
</legend>
<div
class=
"choices-list"
>
<div
class=
"choices-list"
>
...
...
mentoring/templates/html/mcqblock_rating.html
View file @
568115bb
<fieldset
class=
"rating questionnaire"
>
<fieldset
class=
"rating questionnaire"
>
<legend
class=
"question"
>
{{ self.question }}
</legend>
<legend
class=
"question"
>
<h3
class=
"question-title"
>
QUESTION {{ self.index }}
</h3>
<p>
{{ self.question }}
</p>
</legend>
<div
class=
"choices-list"
>
<div
class=
"choices-list"
>
<div
class=
"choice"
>
<div
class=
"choice"
>
<div
class=
"choice-result icon-2x"
></div>
<div
class=
"choice-result icon-2x"
></div>
...
...
mentoring/templates/html/mrqblock_choices.html
View file @
568115bb
<fieldset
class=
"choices questionnaire"
data-hide_results=
"{{self.hide_results}}"
>
<fieldset
class=
"choices questionnaire"
data-hide_results=
"{{self.hide_results}}"
>
<legend
class=
"question"
>
<legend
class=
"question"
>
<h3>
QUESTION {{ self.index }}
</h3>
<h3
class=
"question-title"
>
QUESTION {{ self.index }}
</h3>
<p>
{{ self.question }}
</p>
<p>
{{ self.question }}
</p>
</legend>
</legend>
<div
class=
"choices-list"
>
<div
class=
"choices-list"
>
...
...
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