Sha256: bb8de8ca3d0810fc0d323c9c3e86fbc96c80c651b9b4508811879a9b4953cffe

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

<% if @mail_schedule.errors.any? %>
  <p id="error_explanation">
    <h2><%= pluralize(@mail_schedule.errors.count, "error") %> prohibited this mail_schedule from being saved:</h2>

    <ul>
    <% @mail_schedule.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 :mail_template_id %><br />
  <%= f.select :mail_template_id, MailEngine::MailTemplate.group("path").where(:for_marketing => true).map {|t| [t.name, t.id]} %>
</div>
<div class="field">
  <%= f.label :user_group %><br />
  <%= f.select :user_group, MailEngine::USER_MODEL.groups %>
</div>
<div class="field">
  <%= f.label :count %><br />
  <%= f.select :count, [['Unlimited', 0]] + (1..10).to_a.map {|i| [i,i]} %>
</div>
<div class="field">
  <%= f.label :period %><br />
  <%= f.select :period, ['once', 'daily', 'weekly', 'monthly', 'yearly'] %>
</div>
<div class="field">
  <%= f.label :first_send_at, "First Send At" %><br />
  <%= f.datetime_select :first_send_at, :start_year => Time.now.year, :include_seconds => false, :minute_step => 15 %>
</div>
<div class="field">
  <%= f.label :payload %><br />
  <% MailEngine::USER_MODEL.payload_columns.each do |column| %>
    <%= check_box_tag "#{f.object_name}[payload][]", column, f.object.payload.try(:include?, column) %> <%= column %><br />
  <% end %>
</div>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mail_engine-0.1.3 app/views/mail_engine/mail_schedules/_form.html.erb
mail_engine-0.1.2 app/views/mail_engine/mail_schedules/_form.html.erb
mail_engine-0.1.1 app/views/mail_engine/mail_schedules/_form.html.erb
mail_engine-0.1.0 app/views/mail_engine/mail_schedules/_form.html.erb