<% @tmp_mail_template.template_partials.each do |template_partial| %> <%= fields_for "mail_engine_mail_template[template_partials_attributes][#{template_partial.id || template_partial.object_id}]", template_partial do |partial_form| %>

<%= partial_form.object.placeholder_name %>

<% show_no_record partials = MailEngine::MailTemplate.partial.where(:format => params[:template_format], :locale => params[:template_locale]) do %> <% end %> <% end %> <% end %>