OSDN Git Service

2266c47ec5005f7dbb34d9e31db5cd3bc097545b
[pettanr/pettanr.git] / app / views / user_sessions / new.html.erb
1 <% @page_title = t('users.signin.title') %>
2 <h1>
3   <%= link_to h(manifest.magic_numbers['profile']['users']['caption']), root_path %>
4   <%= link_to h(manifest.magic_numbers['profile']['users']['caption']), 'll/' %>
5 </h1>
6 <h2>
7   <%= sanitize manifest.magic_numbers['profile']['users']['description'], :tags => %w(a p img br) %>
8 </h2>
9 <div>
10   <%= t('users.signin.notice') %>
11 </div>
12 <ul class="auth-servers">
13   <li class="twitter">
14     <%= link_to t('users.signin.twitter.caption'), user_omniauth_authorize_path(:twitter) %>
15     <%= link_to tag(:img, :src => '/images/twitter.png'), user_omniauth_authorize_path(:twitter) %>
16     <p><%= t('users.signin.twitter.notice') %></p>
17   </li>
18   <li class="google">
19     <%= link_to t('users.signin.google.caption'), user_omniauth_authorize_path(:google_oauth2) %>
20     <%= link_to tag(:img, :src => '/images/google.png'), user_omniauth_authorize_path(:google_oauth2) %>
21     <p><%= t('users.signin.google.notice') %></p>
22   </li>
23 </ul>
24 <div class="row_break"></div>
25 <div class="users-signin">
26   <h3>
27     <%= t('users.signin.form.notice') %>
28   </h3>
29   <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
30     <div><%= f.label :email %><br />
31     <%= f.email_field :email %></div>
32
33     <div><%= f.label :password %><br />
34     <%= f.password_field :password %></div>
35
36     <% if devise_mapping.rememberable? -%>
37       <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
38     <% end -%>
39
40     <div><%= f.submit t('users.signin.form.signin') %></div>
41   <% end %>
42   <%= render :partial => "/users/shared/links" %>
43 </div>