class InternetConfig

Public Instance Methods

layout() click to toggle source
# File Views/Internet/Config.rb, line 2
def layout
  set_data_class :ConfigBases
  #@visible = false
  @order = 200
  @update = true
  @functions_need = [:network, :internet]

  gui_vbox do
    gui_hbox :nogroup do
      gui_vbox :nogroup do
        show_block :operator
        show_block :internet
        show_block :captive_conn
      end
      gui_vbox :nogroup do
        show_block :mobilecontrol
      end
    end
    show_button :save_costs
  end
end
rpc_button_save_costs(session, data) click to toggle source
# File Views/Internet/Config.rb, line 24
def rpc_button_save_costs(session, data)
  ConfigBase.data_set_hash(data)
  ConfigBase.send_config
end
update(session) click to toggle source
# File Views/Internet/Config.rb, line 29
def update(session)
  ConfigBase.to_hash
end