Skip to content

Commit

Permalink
Step 18.7: Update the new party form
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Nov 27, 2016
1 parent 714793a commit bcad59e
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions client/imports/app/parties/parties-form.component.html
@@ -1,15 +1,21 @@
<form [formGroup]="addForm" (ngSubmit)="addParty()">
<label>Name</label>
<input type="text" formControlName="name">
<form [formGroup]="addForm" (ngSubmit)="addParty()" class="form-inline">
<fieldset class="form-group">
<label for="partyName">Party name</label>
<input id="partyName" class="form-control" type="text" formControlName="name" placeholder="Party name" />

<label>Description</label>
<input type="text" formControlName="description">
<label for="description">Description</label>
<input id="description" class="form-control" type="text" formControlName="description" placeholder="Description">

<label>Location</label>
<input type="text" formControlName="location">
<label for="location_name">Location</label>
<input id="location_name" class="form-control" type="text" formControlName="location" placeholder="Location name">

<label>Public</label>
<input type="checkbox" formControlName="public">

<button type="submit">Add</button>
</form>
<div class="checkbox">
<label>
<input type="checkbox" formControlName="public">
Public
</label>
</div>

<button type="submit" class="btn btn-primary">Add</button>
</fieldset>
</form>

0 comments on commit bcad59e

Please sign in to comment.