<%= pluralize(@mail_template.errors.count, "error") %> prohibited this mail_template from being saved:
-
<% @mail_template.errors.full_messages.each do |msg| %>
- <%= msg %> <% end %>
<%= f.label :name %>
<%= f.text_field :name, :class => "text" %>
<%= f.text_field :name, :class => "text" %>
<%= f.label :subject %>
<%= f.text_field :subject, :class => "text" %>
<%= f.text_field :subject, :class => "text" %>
<%= f.label :path, 'Template Path' %>
<%= f.text_field :path, :class => "text" %>
<%= f.text_field :path, :class => "text" %>
<%= f.label :locale %>
<%= f.select :locale, I18n.available_locales.map(&:to_s) %>
<%= f.select :locale, I18n.available_locales.map(&:to_s) %>
<% if @mail_template.zip_file.present? %>
Do you to change this uploaded file: <%= link_to File.basename(@mail_template.zip_file_url), @mail_template.zip_file_url %> ?
<% end %>
<%= f.file_field :zip_file, :style => 'padding: 10px;', :class => "text" %>
<%= f.hidden_field :zip_file_cache %>
Note:
- Only include Image files(png, gif, jpg), css files and html file.
- Only one html file.
- File should less than 1MB.
<%= f.submit :class => "button" %>
<% end %>