= simple_form_for [:admin, configuration], method: :patch, url: create_or_update_admin_configuration_path('pusher'), as: :configuration, validate: true, turboboost: true, html: {id: 'pusher-configuration-form'} do |f| = f.input :enabled, as: :boolean, inline_label: 'Enabled', label: false = f.input :app_id = f.input :api_key = f.input :api_secret = f.input :api_host, input_html: {value: f.object.api_host || Pusher.host} = f.input :api_port, input_html: {value: f.object.api_port || Pusher.port} = f.input :ws_host, input_html: {value: f.object.ws_host || 'ws.pusherapp.com'} = f.input :ws_port, input_html: {value: f.object.ws_port || '80'} = f.input :wss_port, input_html: {value: f.object.wss_port || '443'} .clearfix.pb10 = f.button :submit, 'Save Pusher Settings', class: 'bt-sendo'