Skip to content
Snippets Groups Projects
Commit 47eeded4 authored by David Noah Donges's avatar David Noah Donges
Browse files

Merge branch '81-room-creation-form-submission' into 'master'

Resolve "Room creation - form submission"

Closes #81

See merge request swtp-block-ws17/arsnova-angular-frontend!67
parents fbd9cd5c 12a59c58
Branches
Tags
1 merge request!67Resolve "Room creation - form submission"
Pipeline #13225 passed with stage
in 36 seconds
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10px">
<mat-form-field>
<input matInput #longRoomName class="input-block" type="text" placeholder="Name" maxlength="50"
[(ngModel)]="longName"/>
<mat-hint align="start"><strong>Max. letters / signs:</strong></mat-hint>
<mat-hint align="end">{{longRoomName.value.length}} / 50</mat-hint>
<button mat-button *ngIf="longName" matSuffix mat-icon-button aria-label="Clear" (click)="longName=''">
<mat-icon>close</mat-icon>
</button>
</mat-form-field>
<form (ngSubmit)="addRoom(longRoomName.value, shortRoomName.value)">
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10px">
<mat-form-field>
<input matInput #longRoomName class="input-block" type="text" placeholder="Name" maxlength="50"
[(ngModel)]="longName"/>
<mat-hint align="start"><strong>Max. letters / signs:</strong></mat-hint>
<mat-hint align="end">{{longRoomName.value.length}} / 50</mat-hint>
<button mat-button *ngIf="longName" matSuffix mat-icon-button aria-label="Clear" (click)="longName=''">
<mat-icon>close</mat-icon>
</button>
</mat-form-field>
<mat-form-field>
<input matInput #shortRoomName class="input-block" type="text" placeholder="Short name" maxlength="8"
[(ngModel)]="shortName"/>
<mat-hint align="start"><strong>Max. letters / signs:</strong></mat-hint>
<mat-hint align="end">{{shortRoomName.value.length}} / 8</mat-hint>
<button mat-button *ngIf="shortName" matSuffix mat-icon-button aria-label="Clear" (click)="shortName=''">
<mat-icon>close</mat-icon>
</button>
</mat-form-field>
<button mat-raised-button color="primary" (click)="addRoom(longRoomName.value, shortRoomName.value)">Create room
</button>
</div>
<mat-form-field>
<input matInput #shortRoomName class="input-block" type="text" placeholder="Short name" maxlength="8"
[(ngModel)]="shortName"/>
<mat-hint align="start"><strong>Max. letters / signs:</strong></mat-hint>
<mat-hint align="end">{{shortRoomName.value.length}} / 8</mat-hint>
<button mat-button *ngIf="shortName" matSuffix mat-icon-button aria-label="Clear" (click)="shortName=''">
<mat-icon>close</mat-icon>
</button>
</mat-form-field>
<button mat-raised-button color="primary" type="submit">Create room</button>
</div>
</form>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment