Some Transactions view adjustments

-moved js to customers and users components, in order to use accordion.
-Made the transaction form a little prettier
This commit is contained in:
Jason Denney
2013-01-23 00:09:39 -05:00
parent 2d51bd1d9a
commit 55d0b8f2f7
12 changed files with 72 additions and 29 deletions
+13 -1
View File
@@ -1,6 +1,7 @@
class Users < Netzke::Basepack::Grid
def configure(c)
super
c.header = false
c.model = "User"
c.columns = [
@@ -15,6 +16,17 @@ class Users < Netzke::Basepack::Grid
#override with nil to remove actions
def default_bbar
[ :apply, :add_in_form ]
[ :apply, :add_in_form, :search ]
end
#needed for transactions customer selection
js_configure do |c|
c.mixin :init_component
end
#needed for transactions customer selection
endpoint :select_customer do |params, this|
session[:selected_customer_id] = params[:customer_id]
session[:selected_customer_type] = params[:customer_type]
end
end