<%= notice %>
<%end%> <%unless alert.blank? %><%= alert %>
<%end%>List of Networks
<% if can? :manage,LocationNetwork%> <%= check_box_tag("select_all", nil, nil, :class => "table-select-all") %> <% end %> | Name | Timezone | No of Device(s) | Tags | Action |
---|---|---|---|---|---|
<% if(can? :manage, x)%> <%= check_box_tag("locations[]",x.id,nil,:class => "inventory-select table-row-check") %> <% end %> | <%= link_to x.network_name, home_path(x), {:class => "text-success"} %> | <%= x.tz_with_offset %> | <%= x.router_inventories.count %> | <% x.tag_list.each do |y| %> <%= link_to y, {:controller=>:home,:action=>:showing_tag, :id=>y, :type=>"tag_list"}, {:class=>"label label-info"} %> <% end %> | <% if (can? :update, x) %> <%=link_to "Edit", edit_home_path(x), :class=>"label label-info" %> <% end %> <% if (can? :destroy, x) %> <%=link_to "Delete", home_path(x), method: :delete, data: { confirm: 'Are you sure you want to delete?' }, :class=>"label label-danger" %> <% end %> |