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
2bd01eb0
Commit
2bd01eb0
authored
Jul 11, 2016
by
Ehtesham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverting inputtype id
parent
99bc5510
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common/lib/capa/capa/capa_problem.py
+2
-2
common/lib/capa/capa/templates/choicegroup.html
+1
-1
No files found.
common/lib/capa/capa/capa_problem.py
View file @
2bd01eb0
...
@@ -846,6 +846,7 @@ class LoncapaProblem(object):
...
@@ -846,6 +846,7 @@ class LoncapaProblem(object):
response_id_str
=
self
.
problem_id
+
"_"
+
str
(
response_id
)
response_id_str
=
self
.
problem_id
+
"_"
+
str
(
response_id
)
# create and save ID for this response
# create and save ID for this response
response
.
set
(
'id'
,
response_id_str
)
response
.
set
(
'id'
,
response_id_str
)
response_id
+=
1
answer_id
=
1
answer_id
=
1
input_tags
=
inputtypes
.
registry
.
registered_tags
()
input_tags
=
inputtypes
.
registry
.
registered_tags
()
...
@@ -869,7 +870,7 @@ class LoncapaProblem(object):
...
@@ -869,7 +870,7 @@ class LoncapaProblem(object):
# Find the label and save it for html transformation step
# Find the label and save it for html transformation step
responsetype_label
=
response
.
find
(
'label'
)
responsetype_label
=
response
.
find
(
'label'
)
problem_data
[
response_id_str
]
=
{
problem_data
[
self
.
problem_id
+
'_'
+
str
(
response_id
)
]
=
{
'label'
:
responsetype_label
.
text
if
responsetype_label
is
not
None
else
''
,
'label'
:
responsetype_label
.
text
if
responsetype_label
is
not
None
else
''
,
'p_ids'
:
p_ids
'p_ids'
:
p_ids
}
}
...
@@ -879,7 +880,6 @@ class LoncapaProblem(object):
...
@@ -879,7 +880,6 @@ class LoncapaProblem(object):
responder
=
responsetype_cls
(
response
,
inputfields
,
self
.
context
,
self
.
capa_system
,
self
.
capa_module
)
responder
=
responsetype_cls
(
response
,
inputfields
,
self
.
context
,
self
.
capa_system
,
self
.
capa_module
)
# save in list in self
# save in list in self
self
.
responders
[
response
]
=
responder
self
.
responders
[
response
]
=
responder
response_id
+=
1
# get responder answers (do this only once, since there may be a performance cost,
# get responder answers (do this only once, since there may be a performance cost,
# eg with externalresponse)
# eg with externalresponse)
...
...
common/lib/capa/capa/templates/choicegroup.html
View file @
2bd01eb0
<form
class=
"choicegroup capa_inputtype"
id=
"
${id}-form
"
>
<form
class=
"choicegroup capa_inputtype"
id=
"
inputtype_${id}
"
>
<fieldset>
<fieldset>
% if response_data['label']:
% if 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>
...
...
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