blob: 3aebb449651dcf6dc45b4b15a6fab4774f0742e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
- content_for :title, "Log in"
%p== Don't have an account? #{link_to "Sign up!", signup_path}
<%- if options[:authlogic] -%>
= form_for @<%= session_singular_name %> do |f|
= f.error_messages
.field
= f.label :username
= f.text_field :username
.field
= f.label :password
= f.password_field :password
.actions
= f.submit "Log in"
<%- else -%>
- form_tag <%= session_plural_name %>_path do
.field
= label_tag :login, "Username or Email Address"
= text_field_tag :login, params[:login]
.field
= label_tag :password
= password_field_tag :password
.actions
= submit_tag "Log in"
<%- end -%>
|