Skip to content

Commit

Permalink
Add edit/save/cancel to Ember demo card
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Jan 23, 2016
1 parent 6a1015e commit 6c4a43b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion demo/app/templates/components/ember-card-editor.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
Neato! An Ember card in edit mode!
<p>Neato! An Ember card in edit mode!</p>

{{input value=data.name}}

<button onclick={{action saveCard (hash name=data.name)}}>Save</button>
<button onclick={{cancelCard}}>Cancel</button>
8 changes: 7 additions & 1 deletion demo/app/templates/components/ember-card.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
Wowza, this card is rendered by Ember!
<p>Wowza, this card is rendered by Ember!</p>

{{#if data.name}}
<p>Name: {{data.name}}</p>
{{/if}}

<button onclick={{editCard}}>Edit</button>

0 comments on commit 6c4a43b

Please sign in to comment.