From da42c9e64dc2ffaad726eb6d4133aea975cfd7f8 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Thu, 18 Nov 2021 13:00:29 +0100 Subject: [PATCH] conditionnal displays on consultation --- .../consultation/consultation.component.html | 55 +++++++++++++------ .../poll-results-detailed.component.html | 2 +- src/styles/partials/_form-controls.scss | 12 ++++ 3 files changed, 51 insertions(+), 18 deletions(-) diff --git a/src/app/features/consultation/consultation.component.html b/src/app/features/consultation/consultation.component.html index 5d769b1f..2a9bf88f 100644 --- a/src/app/features/consultation/consultation.component.html +++ b/src/app/features/consultation/consultation.component.html @@ -1,4 +1,4 @@ -
+
@@ -44,22 +44,37 @@
- -
- - +
+
+ +
+
+
+ + +
+
-
+ +
@@ -89,7 +104,7 @@ @@ -109,6 +124,9 @@ [poll]="poll" [vote_stack]="storageService.vote_stack" > +
+ Ce sondage ne permet pas d'ajouter de commentaires +
@@ -129,6 +147,9 @@ Mettre à jour
+
+ Ce sondage est archivé +
diff --git a/src/app/features/consultation/poll-results-detailed/poll-results-detailed.component.html b/src/app/features/consultation/poll-results-detailed/poll-results-detailed.component.html index 89a91a0a..4728cdfa 100644 --- a/src/app/features/consultation/poll-results-detailed/poll-results-detailed.component.html +++ b/src/app/features/consultation/poll-results-detailed/poll-results-detailed.component.html @@ -19,7 +19,7 @@ - + Ajouter votre vote
diff --git a/src/styles/partials/_form-controls.scss b/src/styles/partials/_form-controls.scss index e69de29b..fc4f14d4 100644 --- a/src/styles/partials/_form-controls.scss +++ b/src/styles/partials/_form-controls.scss @@ -0,0 +1,12 @@ +.consultation { + .is-active { + background: $primary-color; + color: $white; + } +} + +.alert { + @extend .padded; + border-radius: 0.25em; + color: $font_color; +}