<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<% parse_again_start %>
<% parse_again_end %>
<% end %>
<%
files_hash = {}
plugin_template_related_files_text.each do |file|
hash = {}
hash["html"] = add_attribute("form_file", f, file.pluralize.to_sym)
hash["count"] = @plugin_template.send(file.pluralize).count rescue 0
files_hash[file] = hash
%>
<% if !@plugin_template.new_record? && hash["count"] > 0 %>
<% @plugin_template.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 %>
<% if !@member.nil? %>
<%= @member.name rescue ''%>
<%= f.hidden_field :member_profile_id, :value => @member.id %>
<% else %>
<% members = !@plugin_template.member_profile.nil? ? @plugin_template.member_profile.to_a : [] %>
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'plugin_template[member_profile_id]', email_members: members,index:'0',select_name:'member_profile_id'} %>
<% end %>
<% parse_again_start %>
none_locale_fields_input_fields
<% parse_again_end %>
<% parse_again_start %>
<%= f.select :plugin_template_related_id, plugin_template_related.all.collect {|t| [ t.plugin_template_related_main_field, t.id ]} %>
<% parse_again_end %>