% @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 %>
<% partials.each do |partial| %>
-
<%= partial_form.radio_button :partial_id, partial.id, :class => "placeholder_option" %>
<%= partial_form.hidden_field :placeholder_name, :value => partial_form.object.placeholder_name %>
<% end %>
<% end %>
<% end %>
<% end %>