Created
June 18, 2013 02:07
-
-
Save bhameyie/5802117 to your computer and use it in GitHub Desktop.
Coffeescript with KnockoutJS part 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form class="form-horizontal" method="POST" id="login-form" action="/Account/Login"> | |
| <div class="control-group"> | |
| <label class="control-label" for="userId">Email</label> | |
| <div class="controls"> | |
| <input id="userId" name="userId" data-bind="value: email" type="text" placeholder="Email"> | |
| </div> | |
| </div> | |
| <div class="control-group"> | |
| <label class="control-label" for="password">Password</label> | |
| <div class="controls"> | |
| <input id="password" name="password" data-bind="value: pass" type="password" placeholder="Password"> | |
| </div> | |
| </div> | |
| <div class="control-group"> | |
| <div class="controls"> | |
| <label class="checkbox"> | |
| <input type="checkbox"> | |
| Remember me | |
| </label> | |
| <button data-bind="click: logon" type="submit" class="btn btn-inverse">Sign in</button> | |
| </div> | |
| </div> | |
| </form> | |
| <script type="text/javascript"> | |
| ko.applyBindings(new window.app.LoginFormViewModel()); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment