Skip to content

Commit

Permalink
bugfix, correct ids for single and multiple choice answers
Browse files Browse the repository at this point in the history
  • Loading branch information
rlucke committed Jul 8, 2015
1 parent 88b09b6 commit c7ef664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions blocks/TestBlock/templates/_multiple_choice_answers.mustache
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<ul>
{{#answers}}
<li>
<input type="checkbox" name="{{name}}" value="1" id="answer_{{index}}">
<label for="answer_{{index}}">
<input type="checkbox" name="{{name}}" value="1" id="exercise_{{exercise_index}}_answer_{{index}}">
<label for="exercise_{{exercise_index}}_answer_{{index}}">
{{{text}}}
</label>
</li>
Expand Down
4 changes: 2 additions & 2 deletions blocks/TestBlock/templates/_single_choice_answers.mustache
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<ul>
{{#answers}}
<li>
<input type="radio" name="{{name}}" value="{{index}}" id="answer_{{index}}">
<label for="answer_{{index}}">
<input type="radio" name="{{name}}" value="{{index}}" id="exercise_{{exercise_index}}_answer_{{index}}">
<label for="exercise_{{exercise_index}}_answer_{{index}}">
{{{text}}}
</label>
</li>
Expand Down

0 comments on commit c7ef664

Please sign in to comment.