diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e80390f9e4c9a17a15d53f22fef3ab5490f38104..196a7f46816e52ba6a9d98b688fc7a3ea50529a2 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -96,6 +96,7 @@ import { GenericDataDialogComponent } from './components/dialogs/generic-data-di import { FooterComponent } from './components/fragments/footer/footer.component'; import { FooterLoginDialogComponent } from './components/dialogs/footer-login-dialog/footer-login-dialog.component'; import { FooterImprintComponent } from './components/pages/footer-imprint/footer-imprint.component'; +import { CollectionComponent } from './components/collection/collection.component'; export function dialogClose(dialogResult: any) { } @@ -145,6 +146,7 @@ export function dialogClose(dialogResult: any) { FooterComponent, FooterLoginDialogComponent, FooterImprintComponent, + CollectionComponent, ], entryComponents: [ RegisterComponent, @@ -161,7 +163,8 @@ export function dialogClose(dialogResult: any) { ContentDeleteComponent, MarkdownHelpDialogComponent, GenericDataDialogComponent, - FooterLoginDialogComponent + FooterLoginDialogComponent, + CollectionComponent ], imports: [ AppRoutingModule, diff --git a/src/app/components/collection/collection.component.html b/src/app/components/collection/collection.component.html new file mode 100644 index 0000000000000000000000000000000000000000..d0f56e573fa7b85b83201ee8e8488f8a1cf44cbf --- /dev/null +++ b/src/app/components/collection/collection.component.html @@ -0,0 +1,9 @@ +<mat-form-field> + <input matInput #group matInput [formControl]="myControl" [matAutocomplete]="auto" + value={{lastCollection}} placeholder="{{'content.collection' | translate}}"/> + <mat-autocomplete #auto="matAutocomplete"> + <mat-option *ngFor="let collection of filteredOptions | async" [value]="collection"> + {{collection}} + </mat-option> + </mat-autocomplete> +</mat-form-field> diff --git a/src/app/components/collection/collection.component.scss b/src/app/components/collection/collection.component.scss new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/app/components/collection/collection.component.spec.ts b/src/app/components/collection/collection.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..cb438b1d858cc6b5620cdd0c68c242507e71d96d --- /dev/null +++ b/src/app/components/collection/collection.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CollectionComponent } from './collection.component'; + +describe('CollectionComponent', () => { + let component: CollectionComponent; + let fixture: ComponentFixture<CollectionComponent>; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ CollectionComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(CollectionComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/collection/collection.component.ts b/src/app/components/collection/collection.component.ts new file mode 100644 index 0000000000000000000000000000000000000000..fa473ce55c0c8d430c20c0b90b48b0746f9f936c --- /dev/null +++ b/src/app/components/collection/collection.component.ts @@ -0,0 +1,36 @@ +import { Component, OnInit } from '@angular/core'; +import { map, startWith } from 'rxjs/operators'; +import { FormControl } from '@angular/forms'; +import { Observable } from 'rxjs'; + +@Component({ + selector: 'app-collection', + templateUrl: './collection.component.html', + styleUrls: ['./collection.component.scss'] +}) +export class CollectionComponent implements OnInit { + + constructor() { } + + + collections: string[] = ['ARSnova', 'Angular', 'HTML', 'TypeScript' ]; + lastCollection: string; + myControl = new FormControl(); + filteredOptions: Observable<string[]>; + + ngOnInit() { + this.lastCollection = sessionStorage.getItem('collection'); + this.filteredOptions = this.myControl.valueChanges + .pipe( + startWith(''), + map(value => this._filter(value)) + ); + } + + private _filter(value: string): string[] { + const filterValue = value.toLowerCase(); + + return this.collections.filter(collection => collection.toLowerCase().includes(filterValue)); + } + +} diff --git a/src/app/components/dialogs/register/register.component.html b/src/app/components/dialogs/register/register.component.html index 0b5f0f64d0de9082a02440d07a5b90bf5cde2368..6d65d3d4230421a07c16ac70e85a5a6c52104867 100644 --- a/src/app/components/dialogs/register/register.component.html +++ b/src/app/components/dialogs/register/register.component.html @@ -30,6 +30,6 @@ </mat-error> </mat-form-field> - <button mat-raised-button color="primary" type="submit">{{ 'register.register' | translate }}</button> + <button mat-raised-button color="accent" type="submit">{{ 'register.register' | translate }}</button> </form> diff --git a/src/app/components/fragments/content-choice-creator/content-choice-creator.component.html b/src/app/components/fragments/content-choice-creator/content-choice-creator.component.html index 49160fd9ebef08db5e903996238f6b34aa78c6e7..a42e1e7a78c11721d47e3abca71ce30d71a56186 100644 --- a/src/app/components/fragments/content-choice-creator/content-choice-creator.component.html +++ b/src/app/components/fragments/content-choice-creator/content-choice-creator.component.html @@ -59,9 +59,17 @@ {{ 'content.add-answer' | translate }} </button> </div> - + <mat-form-field> + <input matInput #group matInput [formControl]="myControl" [matAutocomplete]="auto" + value={{lastCollection}} placeholder="{{'content.collection' | translate}}"/> + <mat-autocomplete #auto="matAutocomplete"> + <mat-option *ngFor="let collection of filteredOptions | async" [value]="collection"> + {{collection}} + </mat-option> + </mat-autocomplete> + </mat-form-field> <div *ngIf="!editDialogMode" fxLayout="row" fxLayoutAlign="center" fxLayoutGap="50px"> - <button mat-raised-button type="submit" color="primary">{{ 'content.create' | translate }}</button> + <button mat-raised-button type="submit" color="accent">{{ 'content.create' | translate }}</button> <button mat-raised-button (click)="reset($event)" color="primary">{{ 'content.reset' | translate }}</button> <button mat-raised-button *ngIf="lastDeletedDisplayAnswer" (click)="recoverDeletedAnswer($event)" color="primary"> Undo diff --git a/src/app/components/fragments/content-choice-creator/content-choice-creator.component.ts b/src/app/components/fragments/content-choice-creator/content-choice-creator.component.ts index ba3176466ad6138af8ea8b108fe02b681507eab3..22767ac8f924d0dfefd37f86b9e6b14ce3506cfb 100644 --- a/src/app/components/fragments/content-choice-creator/content-choice-creator.component.ts +++ b/src/app/components/fragments/content-choice-creator/content-choice-creator.component.ts @@ -9,6 +9,9 @@ import { AnswerEditComponent } from '../../dialogs/answer-edit/answer-edit.compo import { ContentType } from '../../../models/content-type.enum'; import { ContentListComponent } from '../content-list/content-list.component'; import { ContentDeleteComponent } from '../../dialogs/content-delete/content-delete.component'; +import { FormControl } from '@angular/forms'; +import { Observable } from 'rxjs'; +import { map, startWith } from 'rxjs/operators'; export class DisplayAnswer { answerOption: AnswerOption; @@ -58,6 +61,11 @@ export class ContentChoiceCreatorComponent implements OnInit { roomId: string; roomShortId: string; + collections: string[] = ['ARSnova', 'Angular', 'HTML', 'TypeScript' ]; + myControl = new FormControl(); + filteredOptions: Observable<string[]>; + lastCollection: string; + constructor(private contentService: ContentService, private notificationService: NotificationService, private route: ActivatedRoute, @@ -70,6 +78,12 @@ export class ContentChoiceCreatorComponent implements OnInit { this.roomShortId = this.route.snapshot.paramMap.get('roomId'); this.roomId = localStorage.getItem(`roomId`); this.fillCorrectAnswers(); + this.lastCollection = sessionStorage.getItem('collection'); + this.filteredOptions = this.myControl.valueChanges + .pipe( + startWith(''), + map(value => this._filter(value)) + ); } fillCorrectAnswers() { @@ -90,6 +104,12 @@ export class ContentChoiceCreatorComponent implements OnInit { return index; } + private _filter(value: string): string[] { + const filterValue = value.toLowerCase(); + + return this.collections.filter(collection => collection.toLowerCase().includes(filterValue)); + } + addAnswer($event) { $event.preventDefault(); if (this.newAnswerOptionLabel === '') { @@ -110,7 +130,7 @@ export class ContentChoiceCreatorComponent implements OnInit { return; } } - let points = (this.newAnswerOptionChecked) ? '10' : '-10'; + const points = (this.newAnswerOptionChecked) ? '10' : '-10'; this.content.options.push(new AnswerOption(this.newAnswerOptionLabel, points)); this.newAnswerOptionChecked = false; this.newAnswerOptionLabel = ''; @@ -227,7 +247,7 @@ export class ContentChoiceCreatorComponent implements OnInit { this.notificationService.show('Content submitted. Ready for creation of new content.'); } - submitContent(subject: string, body: string) { + submitContent(subject: string, body: string, group: string) { if (this.content.body.valueOf() === '' || this.content.body.valueOf() === '') { this.notificationService.show('No empty fields allowed. Please check subject and body.'); return; @@ -255,14 +275,14 @@ export class ContentChoiceCreatorComponent implements OnInit { this.changesAllowed = true; return; } - this.contentService.addContent(new ContentChoice( + this.contentService.addContentChoice(new ContentChoice( '', '', this.roomId, subject, body, 1, - [], + [group], this.content.options, this.content.correctOptionIndexes, this.content.multiple, @@ -274,7 +294,7 @@ export class ContentChoiceCreatorComponent implements OnInit { editDialogClose($event, action: string) { $event.preventDefault(); if (action.valueOf() === 'edit') { - this.submitContent(this.content.subject, this.content.body); + this.submitContent(this.content.subject, this.content.body, this.content.groups[1]); } if (action.valueOf() === 'abort') { this.dialogRef.close(action); diff --git a/src/app/components/fragments/content-choice-participant/content-choice-participant.component.html b/src/app/components/fragments/content-choice-participant/content-choice-participant.component.html index 8b1c9d4551316e406e7c2f6d0f733a1074be338c..89b6b99e40492668232d69e527da98aaf71ab93e 100644 --- a/src/app/components/fragments/content-choice-participant/content-choice-participant.component.html +++ b/src/app/components/fragments/content-choice-participant/content-choice-participant.component.html @@ -20,7 +20,7 @@ </mat-radio-group> <mat-divider></mat-divider> <div fxLayout fxLayoutGap="5px" fxAlign="row"> - <button mat-raised-button type="submit" color="primary">Submit</button> + <button mat-raised-button type="submit" color="accent">Submit</button> <button mat-raised-button (click)="abstain($event)" color="primary">Abstain</button> <mat-chip-list *ngIf="isAnswerSent"> <mat-chip color="primary" selected="true">Answer sent</mat-chip> diff --git a/src/app/components/fragments/content-likert-creator/content-likert-creator.component.html b/src/app/components/fragments/content-likert-creator/content-likert-creator.component.html index 3ce98bc342fa641c76eaa8c5de68fecb6ff2fba7..6b87d4da460c6a971b7a85d23c42a89e824f6d42 100644 --- a/src/app/components/fragments/content-likert-creator/content-likert-creator.component.html +++ b/src/app/components/fragments/content-likert-creator/content-likert-creator.component.html @@ -21,7 +21,7 @@ <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row> </mat-table> <div *ngIf="!editDialogMode"> - <button mat-raised-button type="submit" color="primary">{{ 'content.create' | translate }}</button> + <button mat-raised-button type="submit" color="accent">{{ 'content.create' | translate }}</button> </div> <div *ngIf="editDialogMode"> <button mat-raised-button (click)="editDialogClose($event,'edit')" color="primary">Update</button> diff --git a/src/app/components/fragments/content-list/content-list.component.html b/src/app/components/fragments/content-list/content-list.component.html index 0e4c1fa95f75af2a729e590dbe85ab0b7b7d7f8c..8542f793e56c5da9cd6b0ac321f1a0645ece72f1 100644 --- a/src/app/components/fragments/content-list/content-list.component.html +++ b/src/app/components/fragments/content-list/content-list.component.html @@ -1,19 +1,19 @@ <div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px" fxFill> <div fxLayout="row" fxLayoutAlign="center"> <mat-card> - <h2>Fragen</h2> + <h2>{{ 'content.contents' | translate}}</h2> <mat-divider></mat-divider> <mat-card-actions> - <button mat-fab color="primary" matTooltip="Fragen präsentieren" + <button mat-fab color="accent" matTooltip="Fragen präsentieren" routerLink="/creator/room/{{ room.shortId }}/contents"> <mat-icon>school</mat-icon> </button> - <button mat-fab color="primary" matTooltip="Neue Frage erstellen" + <button mat-fab color="accent" matTooltip="Neue Frage erstellen" routerLink="/creator/room/{{ room.shortId }}/create-content"> <mat-icon>note_add</mat-icon> </button> </mat-card-actions> - <h4>Klicken Sie auf einen Inhalt, um diesen zu editieren <mat-icon>create</mat-icon></h4> + <h4>{{ 'content.click-here' | translate}}<mat-icon>create</mat-icon></h4> <mat-divider></mat-divider> <mat-list> <mat-list-item *ngFor="let content of contents" (click)="editContent(content.subject)"> diff --git a/src/app/components/fragments/content-list/content-list.component.scss b/src/app/components/fragments/content-list/content-list.component.scss index afc156dd372f0b31c62e93944f7e0f58c6be935c..986ef664b91389944d84c1a32473dc0f13851c63 100644 --- a/src/app/components/fragments/content-list/content-list.component.scss +++ b/src/app/components/fragments/content-list/content-list.component.scss @@ -1,5 +1,6 @@ mat-card { max-width: 800px; + min-width: 50%; } mat-card-content > :first-child { @@ -14,6 +15,10 @@ button { margin: 20px; } +h2 { + color: #3f51b5; +} + h3 { - color: #42A5F5; + color: #3f51b5; } diff --git a/src/app/components/fragments/content-text-creator/content-text-creator.component.html b/src/app/components/fragments/content-text-creator/content-text-creator.component.html index c8deb04713290e6cfa2e4981e5244570e5c7fdf3..27c51bdc62c6186a35aa2a54949867c30ae0992a 100644 --- a/src/app/components/fragments/content-text-creator/content-text-creator.component.html +++ b/src/app/components/fragments/content-text-creator/content-text-creator.component.html @@ -18,7 +18,7 @@ </mat-autocomplete> </mat-form-field> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="5px" *ngIf="!editDialogMode"> - <button mat-raised-button type="submit" color="primary">{{'content.create' | translate}}</button> + <button mat-raised-button type="submit" color="accent">{{'content.create' | translate}}</button> </div> <div *ngIf="editDialogMode"> <button mat-raised-button (click)="editDialogClose($event,'edit')" color="primary">Update</button> diff --git a/src/app/components/fragments/content-text-participant/content-text-participant.component.html b/src/app/components/fragments/content-text-participant/content-text-participant.component.html index fd8e3c09ea0d53d72937283930a17d5d59e34876..125b7e1781841b7a8563d574c8a22d0aa132649f 100644 --- a/src/app/components/fragments/content-text-participant/content-text-participant.component.html +++ b/src/app/components/fragments/content-text-participant/content-text-participant.component.html @@ -6,7 +6,7 @@ <textarea matInput [(ngModel)]="textAnswer" name="answer" #answer placeholder="{{ 'answer.your-answer' | translate }}"></textarea> </mat-form-field> <div fxLayout fxLayoutGap="5px" fxAlign="row"> - <button mat-raised-button type="submit" color="primary">{{ 'answer.submit' | translate }}</button> + <button mat-raised-button type="submit" color="accent">{{ 'answer.submit' | translate }}</button> <button mat-raised-button (click)="abstain($event)" color="primary">{{ 'answer.abstain' | translate }}</button> <mat-chip-list *ngIf="isAnswerSent"> <mat-chip color="primary" selected="true">{{ 'answer.sent' | translate }}</mat-chip> diff --git a/src/app/components/fragments/content-yes-no-creator/content-yes-no-creator.component.html b/src/app/components/fragments/content-yes-no-creator/content-yes-no-creator.component.html index 5d81a65c670d0d369bc5600c3d8dfec68fc97ebd..ce09023a344e4ed554236651b9409b3c02a4a77a 100644 --- a/src/app/components/fragments/content-yes-no-creator/content-yes-no-creator.component.html +++ b/src/app/components/fragments/content-yes-no-creator/content-yes-no-creator.component.html @@ -24,7 +24,7 @@ </mat-table> <mat-divider></mat-divider> <div *ngIf="!editDialogMode"> - <button mat-raised-button type="submit" color="primary">{{ 'content.create' | translate }}</button> + <button mat-raised-button type="submit" color="accent">{{ 'content.create' | translate }}</button> </div> <div *ngIf="editDialogMode"> <button mat-raised-button (click)="editDialogClose($event,'edit')" color="primary">Update</button> diff --git a/src/app/components/fragments/header/header.component.ts b/src/app/components/fragments/header/header.component.ts index 235cb980eddf55f3c940178ec8e47f04a8444cf5..7698ae366b29eb8fe358ae7755cc3b602045cfd6 100644 --- a/src/app/components/fragments/header/header.component.ts +++ b/src/app/components/fragments/header/header.component.ts @@ -17,7 +17,7 @@ export class HeaderComponent implements OnInit { constructor(public location: Location, private authenticationService: AuthenticationService, - private notification: NotificationService, + private notificationService: NotificationService, public router: Router, private translationService: TranslateService) { @@ -31,7 +31,9 @@ export class HeaderComponent implements OnInit { logout() { this.authenticationService.logout(); - this.notification.show(`Logged out`); + this.translationService.get('header.logged-out').subscribe(message => { + this.notificationService.show(message); + }); this.router.navigate(['/']); } diff --git a/src/app/components/fragments/login/login.component.html b/src/app/components/fragments/login/login.component.html index b4f6ff972541e60ec39172242af9f070c05d4f78..21625d5359ff45e46e217a0c1c6cf0e8ed3572ee 100644 --- a/src/app/components/fragments/login/login.component.html +++ b/src/app/components/fragments/login/login.component.html @@ -15,7 +15,7 @@ [formControl]="passwordFormControl" [errorStateMatcher]="matcher" name="password"/> <mat-error *ngIf="passwordFormControl.hasError('required')">{{ 'login.password-required' | translate }}</mat-error> </mat-form-field> - <button mat-raised-button color="primary" type="submit">{{ 'login.login' | translate }}</button> + <button mat-raised-button color="accent" type="submit">{{ 'login.login' | translate }}</button> <button mat-raised-button (click)="guestLogin()" type="button"> {{ 'login.guest-login' | translate }} </button> diff --git a/src/app/components/pages/comment-create-page/comment-create-page.component.html b/src/app/components/pages/comment-create-page/comment-create-page.component.html index 8533f29894499532d7f89c5b9ced2f686410959a..4bdc50978f522844bca28d93af97edeed725aff2 100644 --- a/src/app/components/pages/comment-create-page/comment-create-page.component.html +++ b/src/app/components/pages/comment-create-page/comment-create-page.component.html @@ -9,7 +9,7 @@ <textarea matInput></textarea> </mat-form-field> <button mat-raised-button color="primary" (click)="goBack()">{{ 'comment-page.back' | translate}}</button> - <button mat-raised-button color="primary" (click)="send(commentSubject.value, commentBody.value)">{{ 'comment-page.send' | translate}}</button> + <button mat-raised-button color="accent" (click)="send(commentSubject.value, commentBody.value)">{{ 'comment-page.send' | translate}}</button> </form> </div> <div fxLayout="row" fxLayoutAlign="center"> diff --git a/src/app/components/pages/feedback-barometer-page/feedback-barometer-page.component.html b/src/app/components/pages/feedback-barometer-page/feedback-barometer-page.component.html index 395b067096c86a2dae8bdb958e061a436bedc739..4bcfffe97234a0f82b70a933fe5353959c2408da 100644 --- a/src/app/components/pages/feedback-barometer-page/feedback-barometer-page.component.html +++ b/src/app/components/pages/feedback-barometer-page/feedback-barometer-page.component.html @@ -3,7 +3,7 @@ <div fxLayout="row" fxLayoutGap="30px" *ngFor="let state of feedback"> <mat-icon matTooltip="{{ state.message }}" (click)="userRole === 0 && submitFeedback(state.state)">{{ state.name }}</mat-icon> - <mat-progress-bar [value]="state.count" color="primary"> + <mat-progress-bar [value]="state.count" color="accent"> </mat-progress-bar> </div> <div fxLayoutAlign="center" *ngIf="userRole === 1"> diff --git a/src/app/components/pages/room-creator-page/room-creator-page.component.html b/src/app/components/pages/room-creator-page/room-creator-page.component.html index ced52251de3295a6edf81776d5004454bea50944..61a5c353c33f52bf85d5b250fa497e9348ac3fde 100644 --- a/src/app/components/pages/room-creator-page/room-creator-page.component.html +++ b/src/app/components/pages/room-creator-page/room-creator-page.component.html @@ -43,7 +43,6 @@ {{ 'room-page.delete-room' | translate }} </button> </mat-card-actions> - <mat-divider></mat-divider> <app-content-groups *ngIf="room" [contentGroups]="room.contentGroups"></app-content-groups> </mat-card> <div *ngIf="!isLoading && !room">Error: room could not be found!</div> diff --git a/src/app/components/pages/room-creator-page/room-creator-page.component.scss b/src/app/components/pages/room-creator-page/room-creator-page.component.scss index 67d05a431003a84940481c9ca9f10d2b26e0bc03..3bac633d7820070978d716ffef495e4f9fca0462 100644 --- a/src/app/components/pages/room-creator-page/room-creator-page.component.scss +++ b/src/app/components/pages/room-creator-page/room-creator-page.component.scss @@ -1,5 +1,6 @@ mat-card { max-width: 800px; + min-width: 800px; } mat-card-content > :first-child { @@ -9,4 +10,6 @@ mat-card-content > :first-child { button { margin: 5px; + min-width: 30%; + max-width: 30%; } diff --git a/src/app/components/pages/room-participant-page/room-participant-page.component.html b/src/app/components/pages/room-participant-page/room-participant-page.component.html index 9a925f4e8e1df8861c242de308f37b6d838bc98b..51b80fdb34e0ec7bacf80139e01b13050ed94b5e 100644 --- a/src/app/components/pages/room-participant-page/room-participant-page.component.html +++ b/src/app/components/pages/room-participant-page/room-participant-page.component.html @@ -1,4 +1,4 @@ -<div fxLayout="column" fxLayoutAlign="start" fxLayoutGap="20px" fxFill> +<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px" fxFill> <div fxLayout="row" fxLayoutAlign="center"> <mat-progress-spinner *ngIf="isLoading" mode="indeterminate"></mat-progress-spinner> <mat-card *ngIf="room"> @@ -15,27 +15,23 @@ <mat-divider></mat-divider> <mat-grid-list cols="2" rowHeight="2:1"> <mat-grid-tile> - <button mat-icon-button color="primary" matTooltip="{{ 'room-page.create-comment' | translate}}" + <button mat-icon-button color="accent" matTooltip="{{ 'room-page.create-comment' | translate}}" routerLink="/participant/room/{{ room.id }}/create-comment"> <mat-icon>question_answer</mat-icon> </button> </mat-grid-tile> <mat-grid-tile> - <button mat-icon-button color="primary" matTooltip="{{ 'room-page.give-feedback' | translate}}" + <button mat-icon-button color="accent" matTooltip="{{ 'room-page.give-feedback' | translate}}" routerLink="/participant/room/{{ room.id }}/feedback-barometer"> <mat-icon>thumbs_up_down</mat-icon> </button> </mat-grid-tile> </mat-grid-list> - <mat-nav-list> - <mat-list-item> - {{ 'room-page.comments' | translate }} - </mat-list-item> - <mat-list-item> - {{ 'room-page.learn' | translate }} - </mat-list-item> - <app-content-groups *ngIf="room" [contentGroups]="room.contentGroups"></app-content-groups> - </mat-nav-list> + <mat-card-actions> + <button mat-button color="primary">{{ 'room-page.comments' | translate }}</button> + <button mat-button color="primary">{{ 'room-page.learn' | translate }}</button> + </mat-card-actions> + <app-content-groups *ngIf="room" [contentGroups]="room.contentGroups"></app-content-groups> </mat-card> </div> </div> diff --git a/src/app/components/pages/room-participant-page/room-participant-page.component.scss b/src/app/components/pages/room-participant-page/room-participant-page.component.scss index 3438e3d1c379ffd6df90ee04aa9e34dfae5f33c1..6d693d9e3debb45b725b1d5c5eab2dddc159cbb3 100644 --- a/src/app/components/pages/room-participant-page/room-participant-page.component.scss +++ b/src/app/components/pages/room-participant-page/room-participant-page.component.scss @@ -7,7 +7,14 @@ mat-card-content>:first-child { margin-top: 16px; } -mat-icon { - font-size: 500%; +.mat-icon{ + height:100% !important; + width:100% !important; + font-size:48px !important; } +button { + margin: 5px; + max-width: 30%; + min-width: 30%; +} diff --git a/src/assets/i18n/de.json b/src/assets/i18n/de.json index d0f3daa4cdb2ca16d05bc547355ec545e5081233..4377525d36eea4a37c498bd59fafdc47011b55ea 100644 --- a/src/assets/i18n/de.json +++ b/src/assets/i18n/de.json @@ -3,11 +3,12 @@ "english": "English", "german": "Deutsch", "logout": "Abmelden", - "guest": "Gast" + "guest": "Gast", + "logged-out": "Ausloggen erfolgreich." }, "login-page": { - "creator": "Autor", - "participant": "Teilnehmer", + "creator": "Dozent/in", + "participant": "Student/in", "password-reset": "Passwort zurücksetzen", "register": "Registrieren" }, @@ -88,7 +89,9 @@ "add-answer": "Antwort hinzufügen", "answer": "Antwort", "actions": "Richtig / Falsch", - "reset": "Zurücksetzen" + "reset": "Zurücksetzen", + "contents": "Fragen", + "click-here": "Klicken Sie auf einen Inhalt, um diesen zu editieren" }, "session": { "session-name": "Name der Session", diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 9b87db31c8f414be54e5ccc96a9604ad122ff4d6..09ad31b4a7cd67eaadac849d57e1e95baa6af9f1 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -3,7 +3,8 @@ "english": "English", "german": "German", "logout": "Logout", - "guest": "Guest" + "guest": "Guest", + "logged-out": "Logout successful." }, "login-page": { "creator": "Creator", @@ -86,7 +87,9 @@ "add-answer": "Add answer", "answer": "Answer", "actions": "Actions", - "reset": "Reset" + "reset": "Reset", + "contents": "Contents", + "click-here": "Click on a content to edit it" }, "session": { "session-name": "Session name",