]> gitweb.hhaalo.de Git - speisekarten-editor.git/commitdiff
add: button type
authorBastian Dehn <hhaalo@arcor.de>
Mon, 6 Jun 2022 09:10:01 +0000 (11:10 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 6 Jun 2022 09:10:01 +0000 (11:10 +0200)
src/app/app.component.html

index b93cc66ec2809f30d11a0307d5ed44a4ffc12c53..d4b22982d79fc5c151abdbb56bc9f3de02d35f42 100644 (file)
@@ -1,23 +1,30 @@
 <button class="button main"
+       type="button"
        id="buttonTitle"
        (click)="changeFormTitleVisible()">Titel hinzufügen</button>
 <button class="button main"
+       type="button"
        id="buttonSubtitle"
        (click)="changeFormSubtitleVisible()">Untertitel hinzufügen</button>
 <button class="button main"
+       type="button"
        id="buttonFood"
        (click)="changeFormFoodVisible()">Speise hinzufügen</button>
 
 <form class="form" id="formTitle" *ngIf="formTitleVisible">
        <label>Titel</label>
        <input name="title" type="text" />
-       <button class="button" id="addTitle">Hinzufügen</button>
+       <button class="button"
+               type="button"
+               id="addTitle">Hinzufügen</button>
 </form>
 
 <form class="form" id="formSubtitle" *ngIf="formSubtitleVisible">
        <label>Untertitel</label>
        <input name="subtitle" type="text" />
-       <button class="button" id="addSubtitle">Hinzufügen</button>
+       <button class="button"
+               type="button"
+               id="addSubtitle">Hinzufügen</button>
 </form>
 
 <form class="form" id="formFood" *ngIf="formFoodVisible">
@@ -27,5 +34,7 @@
        <input name="sideDish" type="text" />
        <label>Preis</label>
        <input name="price" type="text" />
-       <button class="button" id="addFood">Hinzufügen</button>
+       <button class="button"
+               type="button"
+               id="addFood">Hinzufügen</button>
 </form>