Sha256: 5283cd810db4ca345f32ddd6a6d3bfc4429ed7021513e613a200a4eb10bd804c
Contents?: true
Size: 1.08 KB
Versions: 5
Compression:
Stored size: 1.08 KB
Contents
<% title _("Import subnets") %> <h2><%= _("The following subnets have been found") %></h2> <%= form_for "subnets[]", :url => create_multiple_subnets_path do |f| -%> <% display_all = !minimal?(@subnets) %> <div class="accordion" id='accordion1'> <% @subnets.each do |subnet| -%> <% id = 'subnet_fields_'+subnet.to_s.gsub('/','_').gsub('.','_') %> <div class="accordion-group"> <div class="accordion-heading" > <a class="accordion-toggle" data-toggle="collapse" data-parent='#accordion1' href="<%= '#'+id %>" data-original-title='review' rel='twipsy' > <%= subnet %> </a> <%= link_to_function "x", "ignore_subnet(this)", :'data-original-title'=> 'ignore subnet', :rel=>'twipsy', :class => "label ignore-subnet" %> </div> <div id="<%= id %>" class="accordion-body collapse <%= 'in' if display_all %>" > <div class="accordion-inner"> <%= fields_for "subnets[]", subnet do |s| -%> <%= render 'fields', :f => s %> <% end -%> </div> </div> </div> <% end -%> </div> <%= submit_or_cancel f %> <% end -%>
Version data entries
5 entries across 5 versions & 1 rubygems