Sha256: 840bac8e3799f253ff208c4de31039f59abe30c34c6e2eb00e071de8f3e02141

Contents?: true

Size: 1.27 KB

Versions: 16

Compression:

Stored size: 1.27 KB

Contents

<div class="post">
  <div class="post-body">
    <h1>Duplicate Mail Tempate</h1>
    <hr />

    <%= form_for(@mail_template, :url => duplicate_mail_template_path(@mail_template, :type => params[:type])) do |f| %>
      <% if @duplicated_mail_template.errors.any? %>
        <p id="error_explanation">
          <h2><%= pluralize(@duplicated_mail_template.errors.count, "error") %> prohibited this mail_template from being saved:</h2>

          <ul>
          <% @duplicated_mail_template.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
          <% end %>
          </ul>
        </p>
      <% end %>

      <div class="field">
        <%= f.label :name %><br />
        <%= f.text_field :name, :class => "text" %>
      </div>

      <div class="field">
        <%= f.label :subject %><br />
        <%= f.text_field :subject, :class => "text" %>
      </div>

      <div class="field">
        <%= f.label :path, 'Template Path' %><br />
        <%= f.text_field :path, :class => "text" %>
      </div>

      <div class="field">
        <%= f.label :locale %><br />
        <%= f.select :locale, I18n.available_locales.map(&:to_s) %>
      </div>

      <div class="actions">
        <%= f.submit "Duplicate", :class => "button" %>
      </div>
    <% end %>

  </div>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mail_engine-0.1.15 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.14 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.13 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.12 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.11 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.10 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.9 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.8 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.7 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.6 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.5 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.4 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.3 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.2 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.1 app/views/mail_engine/mail_templates/duplicate.html.erb
mail_engine-0.1.0 app/views/mail_engine/mail_templates/duplicate.html.erb