aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-edit/need-edit.component.html
blob: e776415b40a7efbd9eb3f3c183c8572c4f4520ed (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
<div id="update-form">
    <h1> Update Need </h1>
    <form #updateForm="ngForm" (ngSubmit)="update(updateForm.value)">
        <label>Name:</label><br>
        <input type="text" name="name" [(ngModel)]="selectedNeed.name"><br>
        <label>Image:</label><br>
        <input type="text" name="image" [(ngModel)]="selectedNeed.image"><br>
        <label>Location:</label><br>
        <input type="text" name="location" [(ngModel)]="selectedNeed.location"><br>
        <label>Max Goal:</label><br>
        <input type="number" name="maxGoal" [(ngModel)]="selectedNeed.maxGoal"><br>
        <label>Type</label><br>
        <input type="radio" name="type" value="MONETARY" [(ngModel)]="selectedNeed.type">
        <label>Monetary</label><br>
        <input type="radio" name="type" value="PHYSICAL" [(ngModel)]="selectedNeed.type">
        <label>Physical</label><br>
        <input type="checkbox" name="urgent" [(ngModel)]="selectedNeed.urgent">
        <label>Urgent</label> <br>
        <label>Description</label> <br>
        <textarea name="description" [(ngModel)]="selectedNeed.description"></textarea><br>
        <input type="submit" value="Submit">

    </form>
</div>