class AdminFunction
Public Instance Methods
layout()
click to toggle source
# File Views/Admin/Function.rb, line 2 def layout @order = 700 @update = true set_data_class(:ConfigBases) gui_vbox do gui_hboxg :nogroup do gui_vboxg :nogroup do show_field :functions, :flexheight => 1 end gui_vbox :nogroup do show_field :welcome_text, :width => 400, :flexheight => 1 end end show_button :save end end
list_usage()
click to toggle source
# File Views/Admin/Function.rb, line 32 def list_usage index = 0 @@usages.collect { |c| index += 1 [index, c.to_sym] } end
rpc_update(session)
click to toggle source
# File Views/Admin/Function.rb, line 20 def rpc_update(session) reply(:empty_nonlists) + update_form_data(ConfigBases.singleton) end