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