Skip to content

Commit

Permalink
Added tagid to checbox and label instead of non working option
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoJokhan committed Feb 14, 2023
1 parent bd30c34 commit 12059ec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
type="checkbox"
name="tags[]"
value="{{tag.id}}"
id="checkbox-{{loop.index}}-{{option.value}}"
id="checkbox-{{loop.index}}-{{tag.id}}"
{% if field.fieldRequired %}required{% endif %}
{% if field.idea.tags %}checked{% endif %}
/>
<label for="checkbox-{{loop.index}}-{{option.value}}" class="checkbox-label">{{tag.name}}</label>
<label for="checkbox-{{loop.index}}-{{tag.id}}" class="checkbox-label">{{tag.name}}</label>
</div>
{% endfor %}
{% endif %}
Expand All @@ -38,11 +38,11 @@
type="checkbox"
name="tags[]"
value="{{tag.id}}"
id="checkbox-{{outer_loop.index}}-{{loop.index}}-{{option.value}}"
id="checkbox-{{outer_loop.index}}-{{loop.index}}-{{tag.id}}"
{% if field.fieldRequired %}required{% endif %}
{% if field.idea.tags %}checked{% endif %}
/>
<label for="checkbox-{{outer_loop.index}}-{{loop.index}}-{{option.value}}" class="checkbox-label">{{tag.name}}</label>
<label for="checkbox-{{outer_loop.index}}-{{loop.index}}-{{tag.id}}" class="checkbox-label">{{tag.name}}</label>
</div>
{% endfor %}
{% endfor %}
Expand Down

1 comment on commit 12059ec

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/frontend:feature-group-tags-like-mzm-12059ec

Please sign in to comment.