<%= form_with model: @network, url: home_index_path, html: { class: "form-horizontal location-form", role: "form" } do |f| %>
<% unless @existing_network.blank? %>
<% end %>
<% if @int_types.present? %>
<% end %>
<% if false %>
<% end %>
<%end%>
Create Network
<%= f.text_field :network_name,:class=>"form-control", :placeholder=>"Network Name", "data-validation" => "required verify_network_name", 'data-validation-url' => verify_network_name_home_index_url %>
<%=f.radio_button(:network_configuration, "default", :checked => true) %> Default Configuration
<%=f.radio_button(:network_configuration, "clone") %> Clone Configuration
<%=f.select(:cloned_network_id, options_from_collection_for_select(@existing_network, 'id', 'network_name'), {}, :class => " form-control col-sm-3") %>
<%=f.radio_button(:network_configuration, "clone") %> Clone Configuration
<%=f.select(:cloned_network_id, options_from_collection_for_select(@existing_network, 'id', 'network_name'), {}, :class => " form-control col-sm-3") %>
<%= f.time_zone_select :timezone, ActiveSupport::TimeZone.us_zones, {},:class=>"form-control" %>
<%=f.label :vendor_type, "Network Vendor", :class=>"col-sm-4 control-label"%>
<% if @current_user.organisation_id == 190 %>
<%= f.select :vendor_type,options_for_select(RouterInventory::VENDOR_TYPE_1.map{|n,v| [v,n]}),{},:class=>"form-control logging_type" ,:selected_key => f.object.vendor_type,:data => { validation: 'required'} %>
<% else %>
<%= f.select :vendor_type,options_for_select(RouterInventory::VENDOR_TYPE.map{|n,v| [v,n]}),{},:class=>"form-control logging_type select_vendor" ,:selected_key => f.object.vendor_type,:data => { validation: 'required'} %>
<% end %>
<%= f.select :integration_type_id,content_tag(:option,'--Select Integration Type--',:value=>'') + options_from_collection_for_select(@int_types, 'id', 'name'),{},:class=>"form-control int-select" %>
<%= select_tag 'location_network[vendor_details][domain_id]',"",:class=>"form-control domain-select" %>
<%= text_field_tag "tag[add]", '', :class => "add-tags_list", :style => "width:200px" %>
Add one or multiple Tags.
<%= f.radio_button :presence, true, checked: '', onClick: "presenceFunc(true);", id: "location_nw_radio" %>Yes
<%= f.radio_button :presence, false, checked: 'checked', onClick: "presenceFunc(false);", id: "location_nw_radio" %>No
<%=f.button "Create Network",:class=>"btn btn-success check-valid-macs",:type=> "submit" %>
<%= link_to 'Cancel', home_index_path, :class => "btn btn-primary" %>