diff options
Diffstat (limited to 'app/views/sessions/new.html.erb')
-rw-r--r-- | app/views/sessions/new.html.erb | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 55c9eca..550a54d 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,5 +1,20 @@ -<h1>New session</h1> +<h1>Sign in</h1> +<% if @user.nil? %> + <p class="errors"> The username or password is incorrect. Verify that CAPS LOCK is not on, and then retype the current username and password. </p> +<% end %> +<div class="row"> + <div class="span6 offset3"> + <%= form_for(:session, url: sessions_path) do |f| %> -<%= render 'form' %> + <%= f.label :email %> + <%= f.text_field :email %> -<%= link_to 'Back', sessions_path %> + <%= f.label :password %> + <%= f.password_field :password %> + + <%= f.submit "Sign in", class: "btn btn-large btn-primary" %> + <% end %> + + <p>New user? <%= link_to "Sign up now!", new_user_path %></p> + </div> +</div> |