mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 08:43:23 -05:00
Added link for users to update email/password
This commit is contained in:
parent
0ef4e81474
commit
d5662284ab
@ -11,6 +11,11 @@ class AppTabPanel < Netzke::Basepack::TabPanel
|
||||
c.text = "CHECK OUT" if controller.current_user
|
||||
end
|
||||
|
||||
action :change_account_info do |c|
|
||||
c.icon = :user_edit
|
||||
c.text = "Change Email/Password"
|
||||
end
|
||||
|
||||
def configure(c)
|
||||
|
||||
#all users
|
||||
@ -56,7 +61,7 @@ class AppTabPanel < Netzke::Basepack::TabPanel
|
||||
end
|
||||
end
|
||||
c.prevent_header = true
|
||||
c.tbar = [:sign_out, :check_out]
|
||||
c.tbar = [:sign_out, :check_out, :change_account_info]
|
||||
c.items = @@app_tab_panel_items
|
||||
super
|
||||
end
|
||||
|
@ -17,5 +17,8 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
onChangeAccountInfo: function(){
|
||||
window.location.href="users/edit";
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
<%= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" %>
|
||||
|
||||
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
||||
|
||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user