diff --git a/client/src/app/shared/components/projector-button/projector-button.component.ts b/client/src/app/shared/components/projector-button/projector-button.component.ts index c7648318b..7debc9839 100644 --- a/client/src/app/shared/components/projector-button/projector-button.component.ts +++ b/client/src/app/shared/components/projector-button/projector-button.component.ts @@ -38,7 +38,7 @@ export class ProjectorButtonComponent implements OnInit { if (isProjectable(obj) || isProjectorElementBuildDeskriptor(obj)) { this._object = obj; } else { - this.object = null; + this._object = null; } } 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 1848815a8..c3f0e5dd5 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 @@ -27,23 +27,26 @@ picture_as_pdf PDF - + +
+ +
- +
+ +
- @@ -126,7 +129,10 @@ -
+
+ -
-
+
+ - - - + listname="{{ 'Select a new candidate' | translate }}" + [InputListValues]="filteredCandidates" + >
+
@@ -179,17 +187,15 @@
-
- -
+
- +

Description:

-
- This field is required. -
-
-
+
diff --git a/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.scss b/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.scss index 21b5a8a2b..4b65cdaba 100644 --- a/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.scss +++ b/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.scss @@ -31,3 +31,14 @@ .add-self-buttons { padding: 15px 0 20px 25px; } + +.search-field { + margin: 20px 0; + + .search-bar { + display: grid; + .mat-form-field { + width: 100%; + } + } +} diff --git a/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.ts b/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.ts index 62775503b..b1b825ab1 100644 --- a/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.ts +++ b/client/src/app/site/assignments/components/assignment-detail/assignment-detail.component.ts @@ -449,7 +449,7 @@ export class AssignmentDetailComponent extends BaseViewComponent implements OnIn /** * Assemble a meaningful label for the poll - * Published polls will look like 'Ballot 2 (published)' + * Published polls will look like 'Ballot 2' * other polls will be named 'Ballot 2' for normal users, with the hint * '(unpulished)' appended for manager users * @@ -458,14 +458,10 @@ export class AssignmentDetailComponent extends BaseViewComponent implements OnIn */ public getPollLabel(poll: AssignmentPoll, index: number): string { const title = `${this.translate.instant('Ballot')} ${index + 1}`; - if (poll.published) { - return title + ` (${this.translate.instant('published')})`; + if (!poll.published && this.hasPerms('manage')) { + return title + ` (${this.translate.instant('unpublished')})`; } else { - if (this.hasPerms('manage')) { - return title + ` (${this.translate.instant('unpublished')})`; - } else { - return title; - } + return title; } } @@ -493,4 +489,11 @@ export class AssignmentDetailComponent extends BaseViewComponent implements OnIn .sortCandidates(listInNewOrder.map(relatedUser => relatedUser.id), this.assignment) .then(null, this.raiseError); } + + /** + * Gets the link to the list of speakers associated with the assignment + */ + public getSpeakerLink(): string { + return `/agenda/${this.assignment.agendaItem.id}/speakers`; + } } diff --git a/client/src/app/site/assignments/components/assignment-poll/assignment-poll.component.html b/client/src/app/site/assignments/components/assignment-poll/assignment-poll.component.html index 24fc52194..bf7caccc0 100644 --- a/client/src/app/site/assignments/components/assignment-poll/assignment-poll.component.html +++ b/client/src/app/site/assignments/components/assignment-poll/assignment-poll.component.html @@ -28,7 +28,7 @@
- +
@@ -39,28 +39,6 @@
-
-

- Hint for ballot paper -

-
- - - - -
-
-

Election method

- {{ pollMethodName | translate }} -
-
@@ -139,7 +117,10 @@ >({{ pollService.getPercent(poll, option, vote.value) }}%)
-
+
{{ pollService.yesQuorum(majorityChoice, poll, option) }} - {{ pollService.getIcon('yes') }} @@ -181,7 +163,7 @@
{{ pollService.getSpecialLabel(poll[key]) | translate }} - ({{ pollService.getValuePercent(poll,key) }} %) + ({{ pollService.getValuePercent(poll, key) }} %)
@@ -194,4 +176,27 @@
+ +
+

Election method

+ {{ pollMethodName | translate }} +
+
+

+ Hint for ballot paper +

+
+ + + + +
+