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
0a00f806
Commit
0a00f806
authored
Jan 24, 2017
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix display of MCQ/MRQ choices with long text.
parent
c7c0b41a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
22 deletions
+38
-22
problem_builder/public/css/questionnaire.css
+12
-3
problem_builder/templates/html/mcqblock.html
+7
-5
problem_builder/templates/html/mrqblock.html
+8
-5
problem_builder/templates/html/ratingblock.html
+11
-9
No files found.
problem_builder/public/css/questionnaire.css
View file @
0a00f806
...
...
@@ -2,19 +2,23 @@
display
:
table
;
position
:
relative
;
width
:
100%
;
border-spacing
:
0
6
px
;
border-spacing
:
0
2
px
;
padding-top
:
10px
;
margin-bottom
:
10px
;
}
.mentoring
.questionnaire
.choice-result
{
display
:
inline-block
;
display
:
table-cell
;
width
:
34px
;
vertical-align
:
top
;
cursor
:
pointer
;
float
:
none
;
}
.mentoring
div
[
data-block-type
=
pb-mrq
]
.questionnaire
.choice-result
{
display
:
inline-block
;
}
.mentoring
.questionnaire
.choice
{
overflow-y
:
hidden
;
display
:
table-row
;
...
...
@@ -78,7 +82,12 @@
}
.mentoring
.choices-list
.choice-selector
{
display
:
inline-block
;
display
:
table-cell
;
}
.mentoring
.choices-list
.choice-label-text
{
display
:
table-cell
;
padding-left
:
0.4em
;
}
.mentoring
.choice-tips-container
,
...
...
problem_builder/templates/html/mcqblock.html
View file @
0a00f806
...
...
@@ -9,14 +9,16 @@
<div
class=
"choice"
aria-live=
"polite"
aria-atomic=
"true"
>
<label
class=
"choice-label"
aria-describedby=
"feedback_{{ self.html_id }} choice_tips_{{ self.html_id }}-{{ forloop.counter }}"
>
<div
class=
"choice-result fa icon-2x"
aria-label=
""
data-label_correct=
"{% trans "
Correct
"
%}"
data-label_incorrect=
"{% trans "
Incorrect
"
%}"
></div>
<div
class=
"choice-selector"
>
<span
class=
"choice-result fa icon-2x"
aria-label=
""
data-label_correct=
"{% trans "
Correct
"
%}"
data-label_incorrect=
"{% trans "
Incorrect
"
%}"
></span>
<span
class=
"choice-selector"
>
<input
type=
"radio"
name=
"{{ self.name }}"
value=
"{{ choice.value }}"
{%
if
self
.
student_choice =
=
choice
.
value
and
not
hide_prev_answer
%}
checked
{%
endif
%}
/>
</
div
>
{{ choice.content|safe }}
</
span
>
<span
class=
"choice-label-text"
>
{{ choice.content|safe }}
</span>
</label>
<div
class=
"choice-tips-container"
>
<div
class=
"choice-tips"
id=
"choice_tips_{{ self.html_id }}-{{ forloop.counter }}"
></div>
...
...
problem_builder/templates/html/mrqblock.html
View file @
0a00f806
...
...
@@ -8,17 +8,20 @@
<div
class=
"choices-list"
>
{% for choice in custom_choices %}
<div
class=
"choice"
aria-live=
"polite"
aria-atomic=
"true"
>
<div
class=
"choice-result fa icon-2x"
id=
"result_{{ self.html_id }}-{{ forloop.counter }}"
aria-label=
""
data-label_correct=
"{% trans "
Correct
"
%}"
data-label_incorrect=
"{% trans "
Incorrect
"
%}"
></div>
<div
class=
"choice-result fa icon-2x"
id=
"result_{{ self.html_id }}-{{ forloop.counter }}"
aria-label=
""
data-label_correct=
"{% trans "
Correct
"
%}"
data-label_incorrect=
"{% trans "
Incorrect
"
%}"
></div>
<label
class=
"choice-label"
aria-describedby=
"feedback_{{ self.html_id }}
result_{{ self.html_id }}-{{ forloop.counter }}
choice_tips_{{ self.html_id }}-{{ forloop.counter }}"
>
<
div
class=
"choice-selector"
>
<
span
class=
"choice-selector"
>
<input
type=
"checkbox"
name=
"{{ self.name }}"
value=
"{{ choice.value }}"
{%
if
choice
.
value
in
self
.
student_choices
and
not
hide_prev_answer
%}
checked
{%
endif
%}
/>
</
div
>
{{ choice.content|safe }}
</
span
>
<span
class=
"choice-label-text"
>
{{ choice.content|safe }}
</span>
</label>
<div
class=
"choice-tips-container"
>
<div
class=
"choice-tips"
id=
"choice_tips_{{ self.html_id }}-{{ forloop.counter }}"
></div>
...
...
problem_builder/templates/html/ratingblock.html
View file @
0a00f806
...
...
@@ -9,16 +9,18 @@
<div
class=
"choice"
aria-live=
"polite"
aria-atomic=
"true"
>
<label
class=
"choice-label"
aria-describedby=
"feedback_{{ self.html_id }} choice_tips_{{ self.html_id }}-{{ i }}"
>
<
div
class=
"choice-result fa icon-2x"
aria-label=
""
data-label_correct=
"{% trans "
Correct
"
%}"
data-label_incorrect=
"{% trans "
Incorrect
"
%}"
></div
>
<
div
class=
"choice-selector"
>
<
span
class=
"choice-result fa icon-2x"
aria-label=
""
data-label_correct=
"{% trans "
Correct
"
%}"
data-label_incorrect=
"{% trans "
Incorrect
"
%}"
></span
>
<
span
class=
"choice-selector"
>
<input
type=
"radio"
name=
"{{ self.name }}"
value=
"{{i}}"
{%
if
self
.
student_choice =
=
i
and
not
hide_prev_answer
%}
checked
{%
else
%}
data-student-choice=
'{{self.student_choice}}'
{%
endif
%}
/>
</span>
<span
class=
"choice-label-text"
>
{{i}}
{% if i == '1' %} - {{ self.low|safe }}{% endif %}
{% if i == '5' %} - {{ self.high|safe }}{% endif %}
</
div
>
</
span
>
</label>
<div
class=
"choice-tips-container"
>
<div
class=
"choice-tips"
id=
"choice_tips_{{ self.html_id }}-{{ i }}"
></div>
...
...
@@ -30,14 +32,14 @@
<div
class=
"choice"
aria-live=
"polite"
aria-atomic=
"true"
>
<label
class=
"choice-label"
aria-describedby=
"feedback_{{ self.html_id }} choice_tips_{{ self.html_id }}-{{ forloop.counter }}"
>
<
div
class=
"choice-result fa icon-2x"
aria-label=
""
data-label_correct=
"{% trans "
Correct
"
%}"
data-label_incorrect=
"{% trans "
Incorrect
"
%}"
></div
>
<
div
class=
"choice-selector"
>
<
span
class=
"choice-result fa icon-2x"
aria-label=
""
data-label_correct=
"{% trans "
Correct
"
%}"
data-label_incorrect=
"{% trans "
Incorrect
"
%}"
></span
>
<
span
class=
"choice-selector"
>
<input
type=
"radio"
name=
"{{ self.name }}"
value=
"{{ choice.value }}"
{%
if
self
.
student_choice =
=
choice
.
value
and
not
hide_prev_answer
%}
checked
{%
else
%}
data-student-choice=
'{{self.student_choice}}'
{%
endif
%}
/>
</
div
>
{{ choice.content|safe }}
</
span
>
<span
class=
"choice-label-text"
>
{{ choice.content|safe }}
</span>
</label>
<div
class=
"choice-tips-container"
>
<div
class=
"choice-tips"
id=
"choice_tips_{{ self.html_id }}-{{ forloop.counter }}"
></div>
...
...
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