Skip to content

Instantly share code, notes, and snippets.

@drogus
Created May 18, 2011 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save drogus/978579 to your computer and use it in GitHub Desktop.
Save drogus/978579 to your computer and use it in GitHub Desktop.
SproutCore FormView
{{#view SC.FormView target="Todos.userSessionController" action="signIn"}}
<!-- name="name" will be used to bind text fied to proper target,
insertNewLine will automatically call action -->
{{view Todos.TextField placeholder="Email" name="email"}}
{{view Todos.TextField placeholder="Password" type="password" name="password"}}
{{#view SC.Submit text="Sign in"}}
{{/view}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment