Permalink
Browse files

Step 7.2: Create form inside PartyDetails template

  • Loading branch information...
1 parent 5570f26 commit 7857cd965ccdbbea736aa9bc13157366c870de2c @kamilkisiela kamilkisiela committed with DAB0mB Sep 21, 2016
Showing with 11 additions and 5 deletions.
  1. +11 −5 client/imports/app/parties/party-details.component.html
@@ -1,7 +1,13 @@
-<header *ngIf="party">
- <h2>{{party.name}}</h2>
+<form *ngIf="party" (submit)="saveParty()">
+ <label>Name</label>
+ <input type="text" [(ngModel)]="party.name" name="name">
- <p>{{party.description}}</p>
+ <label>Description</label>
+ <input type="text" [(ngModel)]="party.description" name="description">
- <p>{{party.location}}</p>
-</header>
+ <label>Location</label>
+ <input type="text" [(ngModel)]="party.location" name="location">
+
+ <button type="submit">Save</button>
+ <a [routerLink]="['/']">Cancel</a>
+</form>

0 comments on commit 7857cd9

Please sign in to comment.