diff --git a/client/src/app/shared/components/assignment-poll-detail-content/assignment-poll-detail-content.component.html b/client/src/app/shared/components/assignment-poll-detail-content/assignment-poll-detail-content.component.html index bc9a20b0f..af581c843 100644 --- a/client/src/app/shared/components/assignment-poll-detail-content/assignment-poll-detail-content.component.html +++ b/client/src/app/shared/components/assignment-poll-detail-content/assignment-poll-detail-content.component.html @@ -49,7 +49,7 @@ - + {{ 'Entitled users' | translate }}
diff --git a/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.html b/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.html index 5f4da972a..364d0d4d4 100644 --- a/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.html +++ b/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.html @@ -149,7 +149,7 @@ diff --git a/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.html b/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.html index ca85612b9..8d721dac0 100644 --- a/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.html +++ b/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.html @@ -12,12 +12,12 @@
-
+
{{ option.user.getFullName() }} {{ unknownUserLabel | translate }}
-
+
- -
-
- -
- -
+
+
+
+
+
+ + +
+ +
diff --git a/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.scss b/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.scss index 0b037101c..843599275 100644 --- a/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.scss +++ b/client/src/app/site/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.scss @@ -4,6 +4,16 @@ margin-bottom: 10px; align-items: baseline; grid-template-columns: auto max-content; + grid-template-areas: 'candidate amount'; + + .candidate { + grid-area: candidate; + } + + .amount { + grid-area: amount; + } + .mat-form-field { width: 100%; } diff --git a/client/src/app/site/assignments/modules/assignment-poll/services/assignment-poll.service.ts b/client/src/app/site/assignments/modules/assignment-poll/services/assignment-poll.service.ts index 35c29731a..47053bbc4 100644 --- a/client/src/app/site/assignments/modules/assignment-poll/services/assignment-poll.service.ts +++ b/client/src/app/site/assignments/modules/assignment-poll/services/assignment-poll.service.ts @@ -228,7 +228,7 @@ export class AssignmentPollService extends PollService { totalByBase = poll.votesvalid; break; case AssignmentPollPercentBase.Entitled: - totalByBase = poll.entitled_users_at_stop.length; + totalByBase = poll?.entitled_users_at_stop?.length || 0; break; case AssignmentPollPercentBase.Cast: totalByBase = poll.votescast; diff --git a/client/src/app/site/polls/components/poll-form/poll-form.component.html b/client/src/app/site/polls/components/poll-form/poll-form.component.html index 7d64901fe..3f2750ec3 100644 --- a/client/src/app/site/polls/components/poll-form/poll-form.component.html +++ b/client/src/app/site/polls/components/poll-form/poll-form.component.html @@ -59,7 +59,7 @@ - + - + -
+
{{ PollPropertyVerbose.global_yes | translate }} diff --git a/client/src/app/site/polls/components/poll-form/poll-form.component.ts b/client/src/app/site/polls/components/poll-form/poll-form.component.ts index b98f81961..f8b218bc2 100644 --- a/client/src/app/site/polls/components/poll-form/poll-form.component.ts +++ b/client/src/app/site/polls/components/poll-form/poll-form.component.ts @@ -215,7 +215,7 @@ export class PollFormComponent this.pollTypeControl.disable(); } - public showAmountAndGlobal(data: any): boolean { + public showMinMaxVotes(data: any): boolean { const selectedPollMethod: AssignmentPollMethod = this.pollMethodControl.value; return (selectedPollMethod === 'Y' || selectedPollMethod === 'N') && (!data || !data.state || data.isCreated); }