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}}
|
{{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}}
|
||||||
|
|
Loading…
Reference in a new issue