<% @site_in_use_locales.each_with_index do |locale, i| %>
<% end %>
<%
links_hash = {}
[].each do |link|
hash = {}
hash["html"] = add_attribute("form_link", f, link.pluralize.to_sym)
hash["count"] = @technique.send(link.pluralize).count rescue 0
links_hash[link] = hash
%>
<% if !@technique.new_record? && hash["count"] > 0 %>
<% @technique.send(link.pluralize).each_with_index do |obj, i| %>
<% if !obj.new_record? %>
<%= f.fields_for link.pluralize.to_sym, obj do |f| %>
<%= render :partial => "form_link", :object => obj, :locals => {:f => f, :i => i} %>
<% end %>
<% end %>
<% end %>
<% end %>
<%= t(:add) %>
<% end %>
<%
files_hash = {}
[].each do |file|
hash = {}
hash["html"] = add_attribute("form_file", f, file.pluralize.to_sym)
hash["count"] = @technique.send(file.pluralize).count rescue 0
files_hash[file] = hash
%>
<% if !@technique.new_record? && hash["count"] > 0 %>
<% @technique.send(file.pluralize).each_with_index do |obj, i| %>
<% if !obj.new_record? %>
<%= f.fields_for file.pluralize.to_sym, obj do |f| %>
<%= render :partial => "form_file", :object => obj, :locals => {:f => f, :i => i} %>
<% end %>
<% end %>
<% end %>
<% end %>
<%= t(:add) %>
<% end %>