mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
🐛 fix visibility of config in summary
This commit is contained in:
parent
43ea524c26
commit
f976d65d20
@ -13,12 +13,23 @@
|
||||
Pseudo
|
||||
</td >
|
||||
<td *ngFor='let choice of config.currentPoll.choices' >
|
||||
<!-- {{choice.id}})-->
|
||||
{{choice.text}}
|
||||
</td >
|
||||
</tr >
|
||||
<!-- somme des points, dont un demi point pour les "peut être" -->
|
||||
|
||||
</thead >
|
||||
<tbody >
|
||||
<tr
|
||||
|
||||
title='somme des points, dont un demi point pour les "peut être"' >
|
||||
<td >
|
||||
<i class='fa fa-plus-circle' ></i > points
|
||||
</td >
|
||||
<td *ngFor='let k of getKeys(config.currentPoll.choices_count.counts )' >
|
||||
{{ 1 * (config.currentPoll.choices_count.counts[k].yes.count) + (config.currentPoll.choices_count.counts[k].yes.count ? config.currentPoll.choices_count.counts[k].maybe.count * 0.5 : 0)}}
|
||||
</td >
|
||||
</tr >
|
||||
<tr
|
||||
class='votes-of-the-person'
|
||||
*ngFor='let voteStack of pollconfig.stacks'
|
||||
@ -34,5 +45,20 @@
|
||||
</span >
|
||||
</td >
|
||||
</tr >
|
||||
<tr class='details' >
|
||||
<td >
|
||||
<i class='fa fa-eye' ></i >
|
||||
</td >
|
||||
<td *ngFor='let k of getKeys(config.currentPoll.choices_count.counts )' >
|
||||
yes {{config.currentPoll.choices_count.counts[k].yes.count}}
|
||||
<br >
|
||||
maybe
|
||||
{{(config.currentPoll.choices_count.counts[k].yes.maybe ? config.currentPoll.choices_count.counts[k].yes.count * 0.5 : 0)}}
|
||||
|
||||
<br >
|
||||
no {{(config.currentPoll.choices_count.counts[k].yes.maybe ? config.currentPoll.choices_count.counts[k].maybe.count * 0.5 : 0)}}
|
||||
|
||||
</td >
|
||||
</tr >
|
||||
</tbody >
|
||||
</table >
|
||||
|
@ -16,7 +16,7 @@ export class VotingSummaryComponent implements OnInit {
|
||||
|
||||
@Input() pollconfig = mockPoll3;
|
||||
|
||||
constructor(private config: ConfigService) {
|
||||
constructor(public config: ConfigService) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@ $breakpoint-responsive: 640px; // à définir
|
||||
position: relative;
|
||||
min-width: 32rem;
|
||||
min-height: 16rem;
|
||||
display: block;
|
||||
padding: $box-padding $box-padding $box-padding calc(#{$box-padding} - #{$box-border-width});
|
||||
border-left: $box-border-width solid transparent;
|
||||
background-color: $white;
|
||||
@ -99,6 +100,7 @@ $breakpoint-responsive: 640px; // à définir
|
||||
.choicebox__txt {
|
||||
margin: 0;
|
||||
font-size: 1.8rem;
|
||||
min-width: 10em;
|
||||
}
|
||||
|
||||
|
||||
@ -131,6 +133,7 @@ $breakpoint-responsive: 640px; // à définir
|
||||
background-color: transparent;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
|
||||
&--maybe {
|
||||
position: relative;
|
||||
|
Loading…
Reference in New Issue
Block a user