/
new.html.erb
63 lines (39 loc) · 1.57 KB
/
new.html.erb
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<title>tiviti sign in</title>
<% puts params.inspect %>
<% if (@email != nil) %>
<div align="center"><font size = "3" color = "black" >To respond to this request you must create a new account</font></div>
<%end%>
<%puts "____________________ilan_______________________________"%>
<div id="sign-in-up-box">
<h1>tiviti</h1>
<div id="sign-in-up-form">
<%= form_for(resource, :as => resource_name,:action =>"create", :url => 'sign_in') do |f| %>
<div class ="fieldset">
<div class="label">
<%= f.label :email %>
</div>
<%= f.email_field :email, :class => "input", :autofocus => "true" %>
<div class="clear"></div>
<div class="label">
<%= f.label :password %>
</div>
<%= f.password_field :password, :class => "input" %>
<div class="clear"></div>
<% if devise_mapping.rememberable? -%>
<%= f.check_box :remember_me, :checked => "checked" %> <%= f.label :remember_me %>
<% end -%>
<div><%= f.submit "Sign in", :class => "button" %></div>
<% end %>
<br />
<br />
<%= render :partial => "my_devise/shared/links" %>
</div>
</div>
<div id="remote">
<b>Or, sign in with</b>
<div id="authentication_services" class="box">
<a href="/auth/facebook"><%= image_tag "facebook_64.png", :size => "64x64", :alt => "Facebook", :class => "authentication_services" %></a>
<a href="/auth/google"><%= image_tag "google_64.png", :size => "64x64", :alt => "Google", :class =>"services" %></a>
</div>
</div>
</div>