Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Step 16.4: Add disabled attribute bindings
  • Loading branch information
dotansimha authored and DAB0mB committed Dec 14, 2016
1 parent 827c300 commit c5edc75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 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>

Expand Down

0 comments on commit c5edc75

Please sign in to comment.