From 0a6b13e22de6937b417e2bcb4be35c8f077e1137 Mon Sep 17 00:00:00 2001 From: Heinrich Marks <heinrich.marks@mni.thm.de> Date: Mon, 12 Mar 2018 21:38:46 +0100 Subject: [PATCH] Adjust HTML --- .../content-creation.component.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/app/content-creation/content-creation.component.html b/src/app/content-creation/content-creation.component.html index 2e435d223..fbcd98a34 100644 --- a/src/app/content-creation/content-creation.component.html +++ b/src/app/content-creation/content-creation.component.html @@ -1,12 +1,20 @@ -<form (ngSubmit)="addContent(subjectTitle.value, bodyText.value)"> +<form (ngSubmit)="addContent(subjectTitle.value, bodyText.value, contentRound.value)"> <div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10px"> <mat-form-field> - <input class="input-block" #subjectTitle matInput (keypress)="resetEmptyInputs()" placeholder="Subject" [(ngModel)]="subject"> + <input class="input-block" #subjectTitle matInput (keypress)="resetEmptyInputs()" placeholder="Subject" [(ngModel)]="subject" + name="Title"> + <button mat-button *ngIf="subject" type="text" matSuffix mat-icon-button aria-label="Clear" (click)="subject=''"> + <mat-icon>close</mat-icon> + </button> </mat-form-field> <mat-form-field> - <input class="input-block" #bodyText matInput matTextareaAutosize matAutosizeMinRows="3" matAutosizeMaxRows="8" (keypress)="resetEmptyInputs()" - placeholder="Body" [(ngModel)]="body"> - <button mat-button matSuffix mat-icon-button aria-label="Clear" (click)="subject=''; body=''"> + <input class="input-block" #contentRound matInput (keypress)="resetEmptyInputs()" placeholder="Round" [(ngModel)]="round" + name="Round"> + </mat-form-field> + <mat-form-field> + <textarea #bodyText matInput matTextareaAutosize matAutosizeMinRows="3" matAutosizeMaxRows="8" (keypress)="resetEmptyInputs()" + placeholder="Body" [(ngModel)]="body" name="Text"></textarea> + <button mat-button *ngIf="body" type="text" matSuffix mat-icon-button aria-label="Clear" (click)="body=''"> <mat-icon>close</mat-icon> </button> </mat-form-field> -- GitLab