Skip to content

Commit

Permalink
Update signin template
Browse files Browse the repository at this point in the history
  • Loading branch information
lizconlan committed Sep 5, 2016
1 parent 187f7ec commit fd7c2e7
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions lib/views/user/_signin.html.erb
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
<div id="signin">

<%= form_tag({:action => "signin"}, {:id => "signin_form"}) do %>
<div id="signin" class="signin">
<%= form_tag({:action => "signin"}, {:id => "signin_form"}) do %>
<%= foi_error_messages_for :user_signin %>

<!--<% if not sign_in_as_existing_user %>
<h2><%= _('If you\'ve used {{site_name}} before', :site_name=>site_name)%></h2>
<% end %>-->

<p>
<label class="form_label" for="user_signin_email"><%= _('Your e-mail:')%></label>
<%= text_field 'user_signin', 'email', { :size => 20, :tabindex => 120 } %>
<label class="form_label" for="user_signin_email"><%= _('Your e-mail:') %></label>
<%= text_field 'user_signin', 'email', { :size => 20, :tabindex => 120 } %>
</p>

<p>
<label class="form_label" for="user_signin_password"><%= _('Password:')%></label>
<%= password_field 'user_signin', 'password', { :size => 15, :tabindex => 130, :autocomplete => 'off' } %>
<label class="form_label" for="user_signin_password"><%= _('Password:') %></label>
<%= password_field 'user_signin', 'password', { :size => 15, :tabindex => 130, :autocomplete => 'off' } %>
</p>

<p class="form_note">
<%= link_to _('Forgotten your password?'), signchangepassword_path(:pretoken => h(params[:token])), :tabindex => 140 %>
<%= link_to _('Forgotten your password?'), new_password_change_path(:pretoken => h(params[:token])), :tabindex => 140 %>
</p>

<p class="form_checkbox">
Expand All @@ -30,10 +25,9 @@
</p>

<div class="form_button">
<%= hidden_field_tag 'token', params[:token], {:id => 'signin_token' } %>
<%= hidden_field_tag :modal, params[:modal], {:id => 'signin_modal' } %>
<%= submit_tag _('Sign in'), :tabindex => 160 %>
<%= hidden_field_tag 'token', params[:token], {:id => 'signin_token' } %>
<%= hidden_field_tag :modal, params[:modal], {:id => 'signin_modal' } %>
<%= submit_tag _('Sign in'), :tabindex => 160 %>
</div>
<% end %>

<% end %>
</div>

0 comments on commit fd7c2e7

Please sign in to comment.