OpenSlides/client/src/app/shared/components/projection-dialog/projection-dialog.component.html

44 lines
1.9 KiB
HTML
Raw Normal View History

2019-01-30 23:35:29 +01:00
<h2 mat-dialog-title>
<span *ngIf="projectorElementBuildDescriptor.projectionDefaultName !== 'motions'" translate>Project {{ projectorElementBuildDescriptor.getTitle() }}?</span>
<span *ngIf="projectorElementBuildDescriptor.projectionDefaultName === 'motions'" translate>Project motion {{ projectorElementBuildDescriptor.getTitle() }}?</span>
</h2>
<mat-dialog-content>
2019-01-30 23:35:29 +01:00
<div
class="projectors"
*ngFor="let projector of projectors"
[ngClass]="isProjectedOn(projector) ? 'projected' : ''"
>
<mat-checkbox [checked]="isProjectorSelected(projector)" (change)="toggleProjector(projector)">
{{ projector.name | translate }}
</mat-checkbox>
2019-01-30 23:35:29 +01:00
<span *ngIf="isProjectedOn(projector)" class="right"> <mat-icon>videocam</mat-icon> </span>
</div>
<mat-divider></mat-divider>
<div *ngIf="options.length > 0">
2019-01-30 23:35:29 +01:00
<div *ngFor="let option of options">
<div *ngIf="isDecisionOption(option)">
<mat-checkbox
[checked]="projectorElement[option.key]"
(change)="projectorElement[option.key] = !projectorElement[option.key]"
>
{{ option.displayName | translate }}
</mat-checkbox>
</div>
2019-01-30 23:35:29 +01:00
<div *ngIf="isChoiceOption(option)">
<h3>{{ option.displayName | translate }}</h3>
<mat-radio-group [name]="option.key" [(ngModel)]="projectorElement[option.key]">
<mat-radio-button *ngFor="let choice of option.choices" [value]="choice.value">
{{ choice.displayName | translate }}
</mat-radio-button>
</mat-radio-group>
</div>
</div>
</div>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button (click)="onOk()" color="primary" translate>OK</button>
<button mat-button (click)="onCancel()" translate>Cancel</button>
</mat-dialog-actions>