Sha256: addbbe3c5498f53c20ecbca66f3df32200a10d5c9695830532e01c273f40be4b
Contents?: true
Size: 1.51 KB
Versions: 5
Compression:
Stored size: 1.51 KB
Contents
<% content_for :caboose_css do %> <% end %> <% content_for :caboose_js do %> <%= javascript_include_tag "caboose/model/all" %> <% end %> <h1>Edit User - <%= @edituser.first_name %> <%= @edituser.last_name %></h1> <ul id='tabs'> <% 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", '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] arr = tabs.to_a.insert(5, ['Variant Limits', "/admin/users/#{@edituser.id}/variant-limits#user_id=#{@edituser.id}"]) tabs = Hash[arr] end if Caboose::Subscription.where(:site_id => @site.id).exists? arr = tabs.to_a.insert(6, ['Subscriptions', "/admin/users/#{@edituser.id}/subscriptions"]) 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)) %> <li<% if selected %> class='selected'<% end %>><a href='<%= href %>'><%= raw text %></a></li> <% end %> <li class='back'><input type='button' value='< Back' onclick="window.location='/admin/users';" /></li> </ul> <div id='content2'>
Version data entries
5 entries across 5 versions & 1 rubygems