Commit b60df0c35ab0589ac385131bcee2213e2023be12

Authored by Pedro
Committed by Rafael Manzo
1 parent c482de1f

Fixed some styles after devise internationalization

app/views/devise/confirmations/new.html.erb
... ... @@ -6,7 +6,7 @@
6 6 <%= devise_error_messages! %>
7 7  
8 8 <div><%= f.label :email %><br />
9   - <%= f.email_field :emaill, :autofocus => true %></div>
  9 + <%= f.email_field :email, :autofocus => true %></div>
10 10  
11 11 <div><%= f.submit t('.resend_confirmation_instructions', :default => 'Resend confirmation instructions'), class: 'btn btn-default' %></div>
12 12 <% end %>
... ...
app/views/devise/passwords/edit.html.erb
... ... @@ -7,12 +7,12 @@
7 7 <%= f.hidden_field :reset_password_token %>
8 8  
9 9 <div><%= f.label :password, t('.new_password', :default => 'New password') %><br />
10   - <%= f.password_field :password %></div>
  10 + <%= f.password_field :password, :autofocus => true %></div>
11 11  
12 12 <div><%= f.label :password_confirmation, t('.confirm_new_password', :default => 'Confirm new password') %><br />
13 13 <%= f.password_field :password_confirmation %></div>
14 14  
15   - <div><%= f.submit t('.change_my_password', :default => 'Change my password') %></div>
  15 + <div><%= f.submit t('.change_my_password', :default => 'Change my password'), class: 'btn btn-warning' %></div>
16 16 <% end %>
17 17  
18 18 <%= render "devise/shared/links" %>
... ...
app/views/devise/registrations/edit.html.erb
1 1 <div class="page-header">
2 2 <h1><%= t('.title', :resource => resource_class.model_name.human , :default => "Edit #{resource_name.to_s.humanize}") %></h1>
3   -
  3 +</div>
4 4 <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => "form-inline" }) do |f| %>
5 5 <%= devise_error_messages! %>
6 6  
... ... @@ -77,6 +77,7 @@
77 77 </div>
78 78 <% end %>
79 79  
  80 +<hr />
80 81 <h2><%= t('.cancel_my_account', :default => 'Cancel my account') %></h2>
81 82  
82 83 <p><%= t('.unhappy', :default => 'Unhappy') %>? <%= link_to t('.cancel_my_account', :default => "Cancel my account"), registration_path(resource_name), :data => { :confirm => t('.are_you_sure', :default => "Are you sure?") }, :method => :delete, class: 'btn btn-warning' %>.</p>
... ...
app/views/devise/sessions/new.html.erb
... ... @@ -33,7 +33,7 @@
33 33 <div class="form-row">
34 34 <div class="field-container">
35 35 <label>
36   - <%= f.check_box :remember_me %> <%= f.label :remember_me %>
  36 + <%= f.check_box :remember_me, class: "checkbox" %> <%= f.label :remember_me %>
37 37 </label>
38 38 </div>
39 39 <div class="help-container">
... ...
app/views/devise/shared/_links.erb
... ... @@ -7,7 +7,7 @@
7 7 <% end -%>
8 8  
9 9 <!-- <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
10   -<%= link_to t(".forgot_your_password", :default => "Forgot your password?"), new_password_path(resource_name) %>
  10 +<%= link_to t(".forgot_your_password", :default => "Forgot your password?"), new_password_path(resource_name), class: 'btn btn-info' %>
11 11 <% end -%> -->
12 12  
13 13 <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
... ...
app/views/devise/unlocks/new.html.erb
1   -<h2><%= t('.resend_unlock_instructions', :default => "Resend unlock instructions") %></h2>
2   -
  1 +<div class="page-header">
  2 + <h2><%= t('.resend_unlock_instructions', :default => "Resend unlock instructions") %></h2>
  3 +</div>
  4 +
3 5 <%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
4 6 <%= devise_error_messages! %>
5 7  
6 8 <div><%= f.label :email %><br />
7   - <%= f.email_field :email %></div>
  9 + <%= f.email_field :email, :autofocus => true %></div>
8 10  
9 11 <div><%= f.submit t('.resend_unlock_instructions', :default => "Resend unlock instructions"), class: 'btn btn-primary' %></div>
10 12 <% end %>
... ...