Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 18, 2014 22:29
Show Gist options
  • Save devdays/1832769aaf560b59dcdd to your computer and use it in GitHub Desktop.
Save devdays/1832769aaf560b59dcdd to your computer and use it in GitHub Desktop.
Single Page App - Sammy Form Template
<form action="#/pretend/post/url" method="post">
<p><label for="name">Name</label>
<input type="text" name="name" /></p>
<p><label for="email">Email</label>
<input type="text" name="email" /></p>
<p>Roles</p>
<p><label for="role_admin">Admin</label>
<input type="checkbox" name="roles[]" value="admin" id="role_admin"/></p>
<p><label for="role_author">Author</label>
<input type="checkbox" name="roles[]" value="author" id="role_author"/></p>
<p><input type="submit" value="Post" /></p>
</form>
<h3>Plain old form</h3>
<form method="post" action="/i_should_submit">
<p><input type="submit" value="Dont press me!" /></p>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment