blob: b767439aa19de284f535ddc744eab47118196087 (
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
|
<h1> Cupboard </h1>
<div id="create-button">
<button (click)="open()">Create new Need</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)="close()">Close</button>
</form>
</div>
<hr>
<app-need-list></app-need-list>
|