blob: 6faea9b313ba0bcf2b30e43da629c9b8122e3b22 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<h1> Cupboard </h1>
<div id="menu">
<button (click)="opencreate()">Create new Need</button>
<button (click)="opendestroy()">Delete all Needs</button>
</div>
<div id="destroy-form">
<button (click)="destroy()">Really Really sure you want to delete all needs?</button>
<button (click)="back()">Close</button>
</div>
<div id="create-form">
<h1> Create a new need </h1>
<form #cupboardForm="ngForm" (ngSubmit)="submit(cupboardForm.value)">
<label>Name:</label><br>
<input type="text" name="name" ngModel><br>
<label>Id:</label><br>
<input type="number" name="id" ngModel><br>
<label>Max Goal:</label><br>
<input type="number" name="maxGoal" ngModel><br>
<label>Type</label><br>
<input type="radio" name="type" value="MONETARY" ngModel>
<label>Monetary</label><br>
<input type="radio" name="type" value="PHYSICAL" ngModel>
<label>Physical</label><br>
<input type="submit" value="Submit">
<button (click)="back()">Close</button>
</form>
</div>
<hr>
<app-need-list></app-need-list>
|