Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
2aafff35
Commit
2aafff35
authored
Jul 13, 2016
by
Ehtesham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more fixes
parent
ff999d76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
common/lib/capa/capa/templates/choicegroup.html
+2
-2
common/lib/capa/capa/tests/test_input_templates.py
+2
-2
No files found.
common/lib/capa/capa/templates/choicegroup.html
View file @
2aafff35
<form
class=
"choicegroup capa_inputtype"
id=
"inputtype_${id}"
>
<form
class=
"choicegroup capa_inputtype"
id=
"inputtype_${id}"
>
<fieldset>
<fieldset>
% if response_data['label']:
% if response_data
and response_data
['label']:
<legend
id=
"${id}-legend"
class=
"response-fieldset-legend field-group-hd"
>
${response_data['label']}
</legend>
<legend
id=
"${id}-legend"
class=
"response-fieldset-legend field-group-hd"
>
${response_data['label']}
</legend>
% else:
% else:
<legend>
Question
</legend>
<legend>
Question
</legend>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
correctness =
None
correctness =
None
%
>
%
>
% if correctness and not show_correctness == 'never':
% if correctness and not show_correctness == 'never':
<
%
label_class
+=
'
choicegroup_
${
correctness
}'
%
>
<
%
label_class
+=
'
choicegroup_
'
+
correctness
%
>
% endif
% endif
% endif
% endif
class="${label_class}"
class="${label_class}"
...
...
common/lib/capa/capa/tests/test_input_templates.py
View file @
2aafff35
...
@@ -231,7 +231,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
...
@@ -231,7 +231,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
for
test_conditions
in
conditions
:
for
test_conditions
in
conditions
:
self
.
context
.
update
(
test_conditions
)
self
.
context
.
update
(
test_conditions
)
xml
=
self
.
render_to_xml
(
self
.
context
)
xml
=
self
.
render_to_xml
(
self
.
context
)
xpath
=
"//label[
@class='choicegroup_correct'
]"
xpath
=
"//label[
contains(@class, 'choicegroup_correct')
]"
self
.
assert_has_xpath
(
xml
,
xpath
,
self
.
context
)
self
.
assert_has_xpath
(
xml
,
xpath
,
self
.
context
)
# Should NOT mark the whole problem
# Should NOT mark the whole problem
...
@@ -252,7 +252,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
...
@@ -252,7 +252,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
for
test_conditions
in
conditions
:
for
test_conditions
in
conditions
:
self
.
context
.
update
(
test_conditions
)
self
.
context
.
update
(
test_conditions
)
xml
=
self
.
render_to_xml
(
self
.
context
)
xml
=
self
.
render_to_xml
(
self
.
context
)
xpath
=
"//label[
@class='choicegroup_incorrect'
]"
xpath
=
"//label[
contains(@class, 'choicegroup_incorrect')
]"
self
.
assert_has_xpath
(
xml
,
xpath
,
self
.
context
)
self
.
assert_has_xpath
(
xml
,
xpath
,
self
.
context
)
# Should NOT mark the whole problem
# Should NOT mark the whole problem
...
...
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