ref: master
app/views/email_templates/_form.html.erb
<%= form_for(@email_template, :url => {:action => @email_template.persisted? ? :update : :create, :id => @email_template.id}) do |f| %>
  <%= error_messages_for :email_template if @email_template.errors.any? %>
  
    
      <%= labelled_form_field(_('Template Name:'), f.text_field(:name)) %>
      <%= labelled_form_field(_('Template Type:'), f.select(:template_type, @email_template.available_types.map {|k,v| [v[:description], k]}, :include_blank => true)) %>
      <%= labelled_form_field(_('Subject:'), f.text_field(:subject)) %>
    
    
      
      
        <%= _('The following parameters may be used in subject and body:') %>
      
      
        <%= @template_params_allowed %>
      
    
    <%= labelled_form_field(_('Body:'), f.text_area(:body, :class => current_editor)) %>
  
  
    <%= submit_button(:save, _('Save')) %>
    <%= button(:back, _('Back'), :action => :index) %>
  
<% end %>