Sha256: 058020545d9e43d6c532af9d04d020733d33d4a33846894418306f897e5e309d

Contents?: true

Size: 1.19 KB

Versions: 13

Compression:

Stored size: 1.19 KB

Contents

<div class="post">
  <div class="post-title">
    <h2>
      Import Mail Template From System Files
    </h2>
  </div>
  <div class="post-body">
    <%= form_for(:import, :url => import_from_files_mail_templates_path) do |f| %>
      <!-- basic columns -->
      <div class="field">
        <%= f.label :mailer_name %><br />
        <%= f.text_field :mailer_name, :class => "text" %>
      </div>

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

      <% if @mailers_found_on_system = MailEngine::MailTemplate.all_system_mailers %>
      <div class="field quiet" style="margin-top: 20px">
        <label>Mailers Found on current system under "app/mailers":</label>
        <ul>
          <% @mailers_found_on_system.each do |mailer| %>
          <li><%= mailer %></li>
          <% end %>
        </ul>
      </div>
      <% end %>

      <div class="field quiet" style="margin-top: 20px">
        <label>Your mail template file name have to abide the convention like:</label>
        <ul>
          <li>xxx.html.erb</li>
          <li>xxx.text.erb</li>
          <li>xxx.html.liquid</li>
          <li>xxx.text.liquid</li>
        </ul>
      </div>
    <% end %>
  </div>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

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