Skip to content

Commit

Permalink
Fixed issue #18888: General issues with different questions (#3317)
Browse files Browse the repository at this point in the history
Co-authored-by: lapiudevgit <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Aug 3, 2023
1 parent ed063a3 commit 7bc0fad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions themes/question/ranking_advanced/views/blocks.twig
Expand Up @@ -4,7 +4,9 @@
<strong class="sortable-subtitle sortable-rank-subtitle">{{choice_title}}</strong>
<!-- @todo : move htmlblock at the good place -->
<div id="sortable-choice-{{qId}}" class="sortable-choice sortable-list ls-flex wrap ls-flex-row display_block_group ">
{% for index, ansrow in answers %}
{% set index = 0 %}
{% for ansrow in answers %}
{% set index = index + 1 %}
<div id="javatbd{{rankingName}}{{ansrow.code}}" class="ls-choice answer-item sortable-item sortable-enable sortable-button ls-flex sortable-block grabable" data-value="{{ansrow.code}}">
<div class="sortable-block-content">
{% if show_handle is same as('yes') %}
Expand All @@ -18,7 +20,7 @@
{% else %}
{% endif %}
{% if show_number is same as('yes') %}
<b class="selector__index_row">#{{(index+1)}}</b>
<b class="selector__index_row">#{{index}}</b>
&nbsp;
{% endif %}
{{ansrow.answer}}
Expand Down

0 comments on commit 7bc0fad

Please sign in to comment.