
<div class="row">
    <div class="col-md-4 col-md-push-4">
        <h1 class="text-center">{{name}}</h1>
    </div>
</div>

<hr>

<div class="row">
    <div class="col-md-4 col-md-push-4" id="newTodo">
        <form class="form-inline" role="form">
            <textarea class="form-control content" on-enter="newTodo" placeholder="Press Enter to add a TODO" autofocus></textarea>
        </form>
    </div>
</div>

{{#todos:index}}

<div class="row">
    <div class="col-md-4 col-md-push-4" id="todos">
        <form class="form-inline" role="form">
            <div class="checkbox">
                <input type='checkbox' checked='{{done}}' on-click='updateTodo'>
            </div>
            <textarea rows="1" class="form-control content {{done ? 'done' : ''}}" id="{{id}}" on-enter="updateTodo">{{content}}</textarea>
            <button type="button" class="btn btn-danger btn-sm" on-click="delTodo:{{index}}">
                <span class="glyphicon glyphicon-trash"></span>
            </button>
        </form>
    </div>
</div>

{{/todos}}

<div class="row">
    <div class="col-md-4 col-md-push-4">
        <h1 class="text-center">{{name}}</h1>
    </div>
</div>

<hr>

<div class="row">
    <div class="col-md-4 col-md-push-4" id="newTodo">
        <form class="form-inline" role="form">
            <textarea class="form-control content" on-enter="newTodo" placeholder="Press Enter to add a TODO" autofocus/>
        </form>
    </div>
</div>

{{#todos:index}}

<div class="row">
    <div class="col-md-4 col-md-push-4" id="todos">
        <form class="form-inline" role="form">
            <div class="checkbox">
                <input type='checkbox' checked='{{done}}' on-click='updateTodo'>
            </div>
            <textarea rows="1" class="form-control content {{done ? 'done' : ''}}" id="{{id}}" on-enter="updateTodo" value="{{content}}"/>
            <button type="button" class="btn btn-danger btn-sm" on-click="delTodo:{{index}}">
                <span class="glyphicon glyphicon-trash"></span>
            </button>
        </form>
    </div>
</div>

{{/todos}}
Fix model synch bug on udpate.
Fix model synch bug on udpate.
