From b3b954df343c0a38d24a3d6cb4f35c2460fc8b04 Mon Sep 17 00:00:00 2001
From: Ricky Barrette <%= f.label :current_password %> (we need your current password to confirm your changes) <%= f.submit "Update" %>
+ <%= f.submit "Update", :class=> 'btn btn-primary'%> <%= button_tag "Cancel", :confirm => 'Are you sure? Any changes will be lost.', :class => 'btn', :type => 'submit', :name => 'commit', :value => 'cancel' %>
+ Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.
<%= f.password_field :current_password %>Cancel my account
-
-Unhappy?
+<%= button_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete, :class =>'btn btn-danger' %>
diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb
index 0c1c1b5..85942b5 100755
--- a/app/views/devise/registrations/new.html.erb
+++ b/app/views/devise/registrations/new.html.erb
@@ -22,7 +22,7 @@
Confirm Password:
<%= f.password_field :password_confirmation, :autocomplete => "off" %>
<%= f.submit "Sign up" %>
+<%= f.submit "Sign up", :class=> 'btn btn-primary' %>
<% end %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index d627f77..4de1bc8 100755 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -26,7 +26,7 @@ <%= form_for("user", :url => user_session_path) do |f| %><%= f.text_field :username , :value => "username" %>
<%= f.password_field :password, :value => "password" %>
- <%= f.submit 'Sign in' %> + <%= f.submit 'Sign in', :class =>'btn btn-primary' %> <% end %>