diff --git a/src/app/features/consultation/consultation.module.ts b/src/app/features/consultation/consultation.module.ts
index 4babe380..7091bdbe 100644
--- a/src/app/features/consultation/consultation.module.ts
+++ b/src/app/features/consultation/consultation.module.ts
@@ -7,9 +7,15 @@ import { ConsultationRoutingModule } from './consultation-routing.module';
import { ConsultationComponent } from './consultation.component';
import { PollResultsCompactComponent } from './poll-results-compact/poll-results-compact.component';
import { PollResultsDetailedComponent } from './poll-results-detailed/poll-results-detailed.component';
+import { ChoiceButtonComponent } from '../../shared/components/choice-item/choice-button.component';
@NgModule({
- declarations: [ConsultationComponent, PollResultsCompactComponent, PollResultsDetailedComponent],
+ declarations: [
+ ConsultationComponent,
+ PollResultsCompactComponent,
+ PollResultsDetailedComponent,
+ ChoiceButtonComponent,
+ ],
imports: [CommonModule, ConsultationRoutingModule, SharedModule, TranslateModule.forChild({ extend: true })],
})
export class ConsultationModule {}
diff --git a/src/app/features/consultation/poll-results-compact/poll-results-compact.component.html b/src/app/features/consultation/poll-results-compact/poll-results-compact.component.html
index f0e70b38..8584c748 100644
--- a/src/app/features/consultation/poll-results-compact/poll-results-compact.component.html
+++ b/src/app/features/consultation/poll-results-compact/poll-results-compact.component.html
@@ -1,10 +1,5 @@
{{ poll.choices.length }} choix
-
+
@@ -24,40 +19,9 @@
diff --git a/src/app/shared/components/choice-item/choice-button.component.html b/src/app/shared/components/choice-item/choice-button.component.html
new file mode 100644
index 00000000..314d4401
--- /dev/null
+++ b/src/app/shared/components/choice-item/choice-button.component.html
@@ -0,0 +1,12 @@
+
diff --git a/src/app/shared/components/choice-item/choice-button.component.scss b/src/app/shared/components/choice-item/choice-button.component.scss
new file mode 100644
index 00000000..e69de29b
diff --git a/src/app/shared/components/choice-item/choice-button.component.spec.ts b/src/app/shared/components/choice-item/choice-button.component.spec.ts
new file mode 100644
index 00000000..1da8247d
--- /dev/null
+++ b/src/app/shared/components/choice-item/choice-button.component.spec.ts
@@ -0,0 +1,24 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { ChoiceButtonComponent } from './choice-button.component';
+
+describe('ChoiceItemComponent', () => {
+ let component: ChoiceButtonComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ChoiceButtonComponent],
+ }).compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(ChoiceButtonComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/shared/components/choice-item/choice-button.component.ts b/src/app/shared/components/choice-item/choice-button.component.ts
new file mode 100644
index 00000000..c73bfde3
--- /dev/null
+++ b/src/app/shared/components/choice-item/choice-button.component.ts
@@ -0,0 +1,22 @@
+import { Component, Input, OnInit } from '@angular/core';
+import { StorageService } from '../../../core/services/storage.service';
+import { Choice } from '../../../core/models/choice.model';
+import { Answer } from '../../../core/enums/answer.enum';
+import { Poll } from '../../../core/models/poll.model';
+
+@Component({
+ selector: 'app-choice-button',
+ templateUrl: './choice-button.component.html',
+ styleUrls: ['./choice-button.component.scss'],
+})
+export class ChoiceButtonComponent implements OnInit {
+ @Input() public poll: Poll;
+ @Input() public choice: Choice;
+ @Input() public answerKind: string = 'yes';
+
+ public answerEnum = Answer;
+
+ constructor(public storageService: StorageService) {}
+
+ ngOnInit(): void {}
+}
diff --git a/src/assets/img/icon_voter_NO.svg b/src/assets/img/icon_voter_NO.svg
new file mode 100644
index 00000000..4c9e3c03
--- /dev/null
+++ b/src/assets/img/icon_voter_NO.svg
@@ -0,0 +1,3 @@
+