Revision 4d8b2799
Added by Ohad Levy over 12 years ago
- ID 4d8b27996f4ba9a0b879295c48aac876e58038ce
app/views/subnets/import.html.erb | ||
---|---|---|
<% title "Import subnets" %>
|
||
|
||
<h2>We've found the following subnets</h2>
|
||
<% form_tag create_multiple_subnets_path do -%>
|
||
<% @subnets.each do |subnet| -%>
|
||
<h3><%= subnet -%></h3>
|
||
<hr>
|
||
<% fields_for "subnets[]", subnet do |f| -%>
|
||
<%= render 'fields', :f => f %>
|
||
<% end -%>
|
||
<div id="<% subnet.to_s %>", class="imported_subnet">
|
||
<li><%= subnet %>(<%= options(@subnets) %>)</li>
|
||
<span class="subnet_fields" <%= display?(minimal?(@subnets)) %>>
|
||
<hr>
|
||
<% fields_for "subnets[]", subnet do |f| -%>
|
||
<%= render 'fields', :f => f %>
|
||
<% end -%>
|
||
</span>
|
||
</div>
|
||
<% end -%>
|
||
<%= submit_tag %>
|
||
<% end -%>
|
Also available in: Unified diff
refs #1201 - adds the ability not to import all subnets
TODO: redo this at some point with checkboxes