% content_for :caboose_css do %>
<% end %>
<% content_for :caboose_js do %>
<%= javascript_include_tag "caboose/model/all" %>
<% end %>
Edit User - <%= @edituser.first_name %> <%= @edituser.last_name %>
<%
tabs = {
'General' => "/admin/users/#{@edituser.id}",
'Invoices' => "/admin/users/#{@edituser.id}/invoices",
'Login Logs' => "/admin/login-logs?user_id=#{@edituser.id}",
'Password' => "/admin/users/#{@edituser.id}/password",
'Roles' => "/admin/users/#{@edituser.id}/roles",
'Subscriptions' => "/admin/users/#{@edituser.id}/subscriptions",
'Delete' => "/admin/users/#{@edituser.id}/delete"
}
if @site.use_store
arr = tabs.to_a.insert(1, ['Payment Method', "/admin/users/#{@edituser.id}/payment-method"])
tabs = Hash[arr]
end
tabs = Caboose.plugin_hook('admin_user_tabs', tabs, @edituser, @site)
%>
<% tabs.each do |text, href| %>
<% selected = true if request.fullpath == href || (text != 'General' && request.fullpath.starts_with?(href)) %>
- class='selected'<% end %>><%= raw text %>
<% end %>