mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-21 02:21:37 -04:00
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:
+13
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user