summaryrefslogtreecommitdiff
path: root/app/views/sessions/new.html.erb
blob: b4acf7753b49ab5b5cc442e86bcc0a96d2f4ef4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<h1>Sign in</h1>
<% if @user.nil? %>
  <p class="errors"> The email/username or password is incorrect. Verify that CAPS LOCK is not on, and then retype the current email/username and password. </p>
<% end %>

  <div class="span6 offset3">
    <%= form_for(:session, url: sessions_path) do |f| %>
    <p>
      <%= f.label(:username_or_email, "Username/Email") %><br/>
      <%= f.text_field :username_or_email%>
    </p>
    <p>
      <%= f.label :password %><br/>
      <%= f.password_field :password %>
    </p>
    <p>
      <%= f.submit "Sign in", class: "btn btn-large btn-primary" %>
    </p>
    <% end %>

    <p>New user? <%= link_to("Sign up now!", new_user_path) %></p>
  </div>