Module: ForemanDatacenter::DeviceInterfaceConnectionsHelper

Defined in:
app/helpers/foreman_datacenter/device_interface_connections_helper.rb

Instance Method Summary collapse

Instance Method Details

#interfaces_for_connection_form(f, interfaces) ⇒ Object



3
4
5
6
7
8
# File 'app/helpers/foreman_datacenter/device_interface_connections_helper.rb', line 3

def interfaces_for_connection_form(f, interfaces)
  selectable_f f, :interface_b,
               options_from_collection_for_select(interfaces, :id, :name),
               { include_blank: 'Choose an interface' },
               { required: true, label: 'Interface', help_inline: 'And then specify an interface' }
end