Skip to content

Instantly share code, notes, and snippets.

@bidah
Created November 17, 2014 17:59
Show Gist options
  • Save bidah/34f6f613e33c7c2d0bb3 to your computer and use it in GitHub Desktop.
Save bidah/34f6f613e33c7c2d0bb3 to your computer and use it in GitHub Desktop.
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<form accept-charset="UTF-8" action="/todos" class="new_todo" data-remote="true" id="new_todo" method="post">
<div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" />
</div>
<input autocomplete="off" autofocus="autofocus" id="new-todo" name="todo[title]" placeholder="What needs to be done?" type="text" />
</form>
</header>
</section>
<!-- <section id="main">
<a data-method="post" data-remote="true" href="/todos/toggle_all" id="toggle-all" rel="nofollow"></a>
<ul id="todo-list">
<li class="todo" data-completed="false" data-id="419" id="todo_419">
<div class="view">
<form accept-charset="UTF-8" action="/todos/419" class="edit_todo" data-remote="true" id="edit_todo_419" method="post">
<div style="margin:0;padding:0;display:inline">
<input name="utf8" type="hidden" value="&#x2713;" />
<input name="_method" type="hidden" value="patch" />
</div>
<input name="todo[completed]" type="hidden" value="0" />
<input class="toggle" id="todo_completed" name="todo[completed]" type="checkbox" value="1" />
</form>
<label>job1</label>
</div>
<form accept-charset="UTF-8" action="/todos/419" class="edit_todo" data-remote="true" id="edit_todo_419" method="post">
<div style="margin:0;padding:0;display:inline">
<input name="utf8" type="hidden" value="&#x2713;" />
<input name="_method" type="hidden" value="patch" />
</div>
<input autocomplete="off" class="edit" id="todo_title" name="todo[title]" type="text" value="job1" />
</form>
<a class="destroy" data-method="delete" data-remote="true" href="/todos/419" rel="nofollow">
<i class="fa fa-times"></i>
</a>
</li>
<li class="todo" data-completed="false" data-id="420" id="todo_420"><div class="view"><form accept-charset="UTF-8" action="/todos/420" class="edit_todo" data-remote="true" id="edit_todo_420" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" />
<input name="_method" type="hidden" value="patch" />
</div><input name="todo[completed]" type="hidden" value="0" />
<input class="toggle" id="todo_completed" name="todo[completed]" type="checkbox" value="1" />
</form><label>potato</label></div><form accept-charset="UTF-8" action="/todos/420" class="edit_todo" data-remote="true" id="edit_todo_420" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" />
<input name="_method" type="hidden" value="patch" />
</div><input autocomplete="off" class="edit" id="todo_title" name="todo[title]" type="text" value="potato" />
</form><a class="destroy" data-method="delete" data-remote="true" href="/todos/420" rel="nofollow"><i class="fa fa-times"></i></a></li></ul></section><footer id="footer"><span id="active-todos-count"></span><ul id="filters"><li><a class="" data-remote="true" href="/todos">All</a></li><li><a class="" data-remote="true" href="/todos/active">Active</a></li><li><a class="" data-remote="true" href="/todos/completed">Completed</a></li></ul><a class="hidden" data-method="delete" data-remote="true" href="/todos/destroy_completed" id="clear-completed" rel="nofollow">Clear completed <span id="completed-todos-count"></span></a></footer>
</section>
<footer id="info"><p>Double-click to edit a todo</p><p>Created by <a href="https://github.com/thomasklemm">Thomas Klemm</a></p><p>Part of <a href="http://todomvc.com">TodoMVC</a></p></footer> -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment