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

41 lines
1.7 KiB
HTML
Raw Normal View History

2019-01-30 23:35:29 +01:00
<h2 mat-dialog-title>
2019-02-15 12:17:08 +01:00
<span translate>Project</span> {{ projectorElementBuildDescriptor.getDialogTitle() }}?
2019-01-30 23:35:29 +01:00
</h2>
<mat-dialog-content>
<div class="projectors"
2019-01-30 23:35:29 +01:00
*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
2019-02-14 16:02:18 +01:00
[checked]="optionValues[option.key]"
(change)="optionValues[option.key] = !optionValues[option.key]"
2019-01-30 23:35:29 +01:00
>
{{ option.displayName | translate }}
</mat-checkbox>
</div>
2019-01-30 23:35:29 +01:00
<div *ngIf="isChoiceOption(option)">
<h3>{{ option.displayName | translate }}</h3>
2019-02-14 16:02:18 +01:00
<mat-radio-group [name]="option.key" [(ngModel)]="optionValues[option.key]">
2019-01-30 23:35:29 +01:00
<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>
2019-02-14 11:55:40 +01:00
<button mat-button osAutofocus (click)="onOk()" color="primary" translate>OK</button>
<button mat-button (click)="onCancel()" translate>Cancel</button>
</mat-dialog-actions>