Sha256: e2fa907e3a5c97d348f80eca39405d0d0060465e0a94e5e20f3c43ffb9a41167

Contents?: true

Size: 977 Bytes

Versions: 16

Compression:

Stored size: 977 Bytes

Contents

<% if f.object.errors.any? %>
  <p id="error_explanation">
    <h4><%= pluralize(f.object.errors.count, "error") %> prohibited this mail_schedule from being saved:</h4>
    <ul>
    <% f.object.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </p>
<% end %>


<div class="field">
  <%= f.label :file %><br />
  <%= f.file_field :file, :class => "text" %>
  <div>
    <i>Only allowed to upload Image file(.jpg, .jpeg, .gif, .png) and CSS file(.css).</i>
  </div>
</div>

<% if f.object.attributes["file"] %>
<table class="data-table" style="margin-top: 10px; margin-bottom: 0px">
  <tr>
    <td><h3><%= link_to f.object.attributes["file"], f.object.file.url, :target => '_blank' %></h3></td>
  </tr>
  <% if f.object.image? %>
  <tr>
    <td><%= image_tag f.object.file.url, :width => 200 %></td>
  </tr>
  <% end %>
</table>

<% end %>

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

Version data entries

16 entries across 16 versions & 1 rubygems

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