Commit 9b9301a5 by Ahsan Ulhaq

Problem with Adaptive Hint is inaccessible

There were no label added for problem with adaptive hint so for the question
added the label and insteat of using for attribute used the label as the
parent of input field

TNL-1074
parent 3b6e76ce
...@@ -36,13 +36,14 @@ data: | ...@@ -36,13 +36,14 @@ data: |
hint = "<font color='blue'>Hint: {0}</font>".format(hint) hint = "<font color='blue'>Hint: {0}</font>".format(hint)
new_cmap.set_hint_and_mode(aid,hint,'always') new_cmap.set_hint_and_mode(aid,hint,'always')
</script> </script>
<p> <label>
What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes. </p> What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.
<p> <p>
<customresponse cfn="test_str" expect="python"> <customresponse cfn="test_str" expect="python">
<textline correct_answer="python" label="What is the best programming language that exists today?"/> <textline correct_answer="python" label="What is the best programming language that exists today?"/>
<hintgroup hintfn="hint_fn"/> <hintgroup hintfn="hint_fn"/>
</customresponse> </customresponse>
</p> </p>
</label>
</text> </text>
</problem> </problem>
...@@ -81,13 +81,14 @@ data: | ...@@ -81,13 +81,14 @@ data: |
hint = "&lt;font color='blue'&gt;Hint: {0}&lt;/font&gt;".format(hint) hint = "&lt;font color='blue'&gt;Hint: {0}&lt;/font&gt;".format(hint)
new_cmap.set_hint_and_mode(aid,hint,'always') new_cmap.set_hint_and_mode(aid,hint,'always')
</script> </script>
<p> <label>
What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes. </p> What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.
<p> <p>
<customresponse cfn="test_str" expect="python"> <customresponse cfn="test_str" expect="python">
<textline correct_answer="python" label="What is the best programming language that exists today?"/> <textline correct_answer="python" label="What is the best programming language that exists today?"/>
<hintgroup hintfn="hint_fn"/> <hintgroup hintfn="hint_fn"/>
</customresponse> </customresponse>
</p> </p>
</label>
</text> </text>
</problem> </problem>
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