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
1 merge request!67Resolve "Room creation - form submission"
Pipeline #13225 passed with stage
in 36 seconds
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10px"> <form (ngSubmit)="addRoom(longRoomName.value, shortRoomName.value)">
<mat-form-field> <div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10px">
<input matInput #longRoomName class="input-block" type="text" placeholder="Name" maxlength="50" <mat-form-field>
[(ngModel)]="longName"/> <input matInput #longRoomName class="input-block" type="text" placeholder="Name" maxlength="50"
<mat-hint align="start"><strong>Max. letters / signs:</strong></mat-hint> [(ngModel)]="longName"/>
<mat-hint align="end">{{longRoomName.value.length}} / 50</mat-hint> <mat-hint align="start"><strong>Max. letters / signs:</strong></mat-hint>
<button mat-button *ngIf="longName" matSuffix mat-icon-button aria-label="Clear" (click)="longName=''"> <mat-hint align="end">{{longRoomName.value.length}} / 50</mat-hint>
<mat-icon>close</mat-icon> <button mat-button *ngIf="longName" matSuffix mat-icon-button aria-label="Clear" (click)="longName=''">
</button> <mat-icon>close</mat-icon>
</mat-form-field> </button>
</mat-form-field>
<mat-form-field> <mat-form-field>
<input matInput #shortRoomName class="input-block" type="text" placeholder="Short name" maxlength="8" <input matInput #shortRoomName class="input-block" type="text" placeholder="Short name" maxlength="8"
[(ngModel)]="shortName"/> [(ngModel)]="shortName"/>
<mat-hint align="start"><strong>Max. letters / signs:</strong></mat-hint> <mat-hint align="start"><strong>Max. letters / signs:</strong></mat-hint>
<mat-hint align="end">{{shortRoomName.value.length}} / 8</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=''"> <button mat-button *ngIf="shortName" matSuffix mat-icon-button aria-label="Clear" (click)="shortName=''">
<mat-icon>close</mat-icon> <mat-icon>close</mat-icon>
</button> </button>
</mat-form-field> </mat-form-field>
<button mat-raised-button color="primary" (click)="addRoom(longRoomName.value, shortRoomName.value)">Create room <button mat-raised-button color="primary" type="submit">Create room</button>
</button> </div>
</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