<%= form_for @inventory, as: :router_inventories, url: inventory_path(@inventory), method: :post, html: { class: "form-horizontal inventory-form", role: "form", multipart: true } do |f| %> <% if (can? :manage, RouterInventory) %>

Add Inventory

<%# if @access_points.blank? %>
<%= f.label :vendor_type, "Vendor Type", :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 vendor_selection", :selected_key => f.object.vendor_type, :data => { validation: 'required'} %> <% end %>
<%= f.select :hardware_part_id, content_tag(:option,'Select Hardware Part',:value=>'') + options_from_collection_for_select(@hw_parts, 'id', 'name'), {}, :class=>"form-control hw-part-select" %>
<%= f.text_field :serial, :class=>"form-control serial", :placeholder=>"Press Enter or Tab to add Serial Numbers" %> Add one or multiple device serial numbers to claim.
<%= f.text_field :mac_id, :class=>"form-control devices", :placeholder=>"Press Enter or Tab to add Devices" %>
<% if current_user.email == "pcctemplate@prontonetworks.com" # is_super_admin %>
<%= f.check_box :is_auto_provisioned, { class: "inventory-auto-provision-switch"}, true, false %>
<% end %>
<%= text_field_tag(:network_name, params[:network_id].present? ? params[:network_id] : '0', class: 'form-control select2-network-input', data: { 'network-type' => 'network_name', 'allow-clear' => false, 'placeholder' => 'Select Network', 'user-role' => current_user.role.name, 'show-select-option' => true }) %>
<%# end %>
<% if true %> <%= f.button "Add Devices", :class=>"btn btn-success create_network check-valid-macs", :type=> "submit" %> <% else %> Add Devices <% end %> <%= link_to "Cancel", inventory_index_path, :class => "btn btn-primary" %>
<% end %> <% end %> <%= render :partial => "/shared/device_details" %>

Inventory List

<%= form_tag bulk_update_inventory_index_path do %>
<% if can? :manage, RouterInventory %> <% end %>
<%= check_box_tag("select_all", nil, nil, class: "table-select-all") %> Name MAC address Serial Firmware version Last HB on Activated On Network Name Tags External GUID
<% end %>