Sha256: e5c3f37e8b353b165e9ff5616f041fac8ec65b2f6b62f82c411e2ad0014fd227

Contents?: true

Size: 986 Bytes

Versions: 27

Compression:

Stored size: 986 Bytes

Contents

<% nat = compute_resource.subnets.collect { |s| [ "#{s.id.split('/')[8]}-#{s.name} #{s.address_prefix}", s.id ] } %>

<%= selectable_f f, :network, options_for_select(nat,
                    :selected => f.object.network),
                 { :include_blank => _('Select') },
                 {
                   :label => _('Azure Subnet'),
                   :required => true,
                   :id => 'azure_rm_subnet',
                   :class => "col-lg-8"
                 }
%>

<%= selectable_f f, :public_ip, options_for_select(['None', 'Dynamic', 'Static'],
                    :selected => f.object.public_ip),
                 {},
                 {
                    :label => _("Public IP"),
                    :label_size => "col-md-2"
                 }
%>

<%= checkbox_f f, :private_ip,
               {
                 :label => _("Static Private IP"),
                 :label_size => "col-md-2"
               },
             'true',
             'false'

%>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
foreman_azure_rm-2.0.7 app/views/compute_resources_vms/form/azurerm/_network.html.erb
foreman_azure_rm-2.0.6 app/views/compute_resources_vms/form/azurerm/_network.html.erb
foreman_azure_rm-2.0.5 app/views/compute_resources_vms/form/azurerm/_network.html.erb
foreman_azure_rm-2.0.4 app/views/compute_resources_vms/form/azurerm/_network.html.erb
foreman_azure_rm-2.0.3 app/views/compute_resources_vms/form/azurerm/_network.html.erb
foreman_azure_rm-2.0.2 app/views/compute_resources_vms/form/azurerm/_network.html.erb
foreman_azure_rm-2.0.1 app/views/compute_resources_vms/form/azurerm/_network.html.erb