readd colors indicating answer to participant table (#289)
This commit is contained in:
parent
4e6d046ec7
commit
cf6d59bf84
2 changed files with 23 additions and 15 deletions
|
@ -42,6 +42,18 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
td {
|
||||
&.yes {
|
||||
background-color: #c6ffbf;
|
||||
}
|
||||
|
||||
&.no {
|
||||
background-color: #ffbabc;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue