readd colors indicating answer to participant table (#289)

This commit is contained in:
Jeldrik Hanschke 2019-11-10 17:44:44 +01:00 committed by GitHub
parent 4e6d046ec7
commit cf6d59bf84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 15 deletions

View file

@ -42,6 +42,18 @@
}
}
}
tbody {
td {
&.yes {
background-color: #c6ffbf;
}
&.no {
background-color: #ffbabc;
}
}
}
}
}
}

View file

@ -46,23 +46,19 @@
{{user.name}}
</td>
{{#each this.options as |option index|}}
<td
data-test-is-selection-cell
data-test-value-for={{option.value}}
>
{{#let (object-at index user.selections) as |selection|}}
{{#if this.isFreeText}}
{{selection.label}}
{{#let (object-at index user.selections) as |selection|}}
<td
class={{selection.type}}
data-test-is-selection-cell
data-test-value-for={{option.value}}
>
{{#if selection.labelTranslation}}
{{t selection.labelTranslation}}
{{else}}
{{#if selection.type}}
<span class={{selection.type}}>
<span class={{selection.icon}}></span>
{{t selection.labelTranslation}}
</span>
{{/if}}
{{selection.label}}
{{/if}}
{{/let}}
</td>
</td>
{{/let}}
{{/each}}
</tr>
{{/each}}