From 65708e743da58272c28e155bb80ade8592f7c7e6 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 9 Nov 2013 11:29:08 -0500 Subject: [PATCH] Replacing user/customer accordion with tab panel --- app/components/transactions_border.rb | 4 ++-- ...stomers_accordian.rb => users_and_customers_lower_tabs.rb} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename app/components/{users_and_customers_accordian.rb => users_and_customers_lower_tabs.rb} (52%) diff --git a/app/components/transactions_border.rb b/app/components/transactions_border.rb index b66296f..95445a2 100644 --- a/app/components/transactions_border.rb +++ b/app/components/transactions_border.rb @@ -4,7 +4,7 @@ class TransactionsBorder < Netzke::Base component :transactions component :transaction_logs #users and customers components are required for the transactions form - component :users_and_customers_accordian + component :users_and_customers_lower_tabs def configure(c) super @@ -13,7 +13,7 @@ class TransactionsBorder < Netzke::Base c.items = [ { netzke_component: :transactions, region: :center, height: 300, split: true }, { netzke_component: :transaction_logs, region: :east, width: 300, split: true }, - { netzke_component: :users_and_customers_accordian, region: :south, height: 300, split: true } + { netzke_component: :users_and_customers_lower_tabs, region: :south, height: 300, split: true } ] end diff --git a/app/components/users_and_customers_accordian.rb b/app/components/users_and_customers_lower_tabs.rb similarity index 52% rename from app/components/users_and_customers_accordian.rb rename to app/components/users_and_customers_lower_tabs.rb index 841aef7..5cb2319 100644 --- a/app/components/users_and_customers_accordian.rb +++ b/app/components/users_and_customers_lower_tabs.rb @@ -1,10 +1,10 @@ -class UsersAndCustomersAccordian < Netzke::Basepack::Accordion +class UsersAndCustomersLowerTabs < Netzke::Basepack::TabPanel component :customers component :users def configure(c) c.prevent_header = true - c.items = [ :customers, :users ] + c.items = [ :users, :customers ] super end end