Add prefix to option IDs to avoid conflicts

This commit is contained in:
ines 2017-06-01 17:56:18 +02:00
parent 1e918b871c
commit a6d99f8dab
1 changed files with 2 additions and 2 deletions

View File

@ -136,8 +136,8 @@ mixin quickstart(groups, headline)
.c-quickstart__legend=group.title .c-quickstart__legend=group.title
.c-quickstart__fields .c-quickstart__fields
for option in group.options for option in group.options
input.c-quickstart__input(class="c-quickstart__input--" + (group.multiple ? "check" : "radio") type=group.multiple ? "checkbox" : "radio" name=group.id id=option.id value=option.id checked=option.checked) input.c-quickstart__input(class="c-quickstart__input--" + (group.multiple ? "check" : "radio") type=group.multiple ? "checkbox" : "radio" name=group.id id="qs-#{option.id}" value=option.id checked=option.checked)
label.c-quickstart__label(for=option.id)=option.title label.c-quickstart__label(for="qs-#{option.id}")=option.title
if option.meta if option.meta
| #[span.c-quickstart__label__meta (#{option.meta})] | #[span.c-quickstart__label__meta (#{option.meta})]
if option.help if option.help