Permalink
Browse files

Step 16.4: Add disabled attribute bindings

  • Loading branch information...
1 parent 827c300 commit c5edc756881f0d277fe5d8f159c3b624f7bd5b66 @dotansimha dotansimha committed with DAB0mB Sep 27, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 client/imports/app/parties/party-details.component.html
@@ -1,14 +1,14 @@
<form *ngIf="party" (submit)="saveParty()">
<label>Name</label>
- <input type="text" [(ngModel)]="party.name" name="name">
+ <input [disabled]="!isOwner" type="text" [(ngModel)]="party.name" name="name">
<label>Description</label>
- <input type="text" [(ngModel)]="party.description" name="description">
+ <input [disabled]="!isOwner" type="text" [(ngModel)]="party.description" name="description">
<label>Location</label>
- <input type="text" [(ngModel)]="party.location" name="location">
+ <input [disabled]="!isOwner" type="text" [(ngModel)]="party.location" name="location">
- <button type="submit">Save</button>
+ <button [disabled]="!isOwner" type="submit">Save</button>
<a [routerLink]="['/']">Cancel</a>
</form>

0 comments on commit c5edc75

Please sign in to comment.