Sha256: 3e2c88de7260b8c82a00a24dead306bb18433254b9cf44136e8c22d06e7b10c2

Contents?: true

Size: 1.91 KB

Versions: 5

Compression:

Stored size: 1.91 KB

Contents

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @promotion } %>
<div class="row">
  <div id="general_fields" class="alpha thirteen columns">
    <div class="alpha four columns">
      <%= f.field_container :name do %>
        <%= f.label :name %>
        <%= f.text_field :name, :class => 'fullwidth' %>
      <% end %>

      <%= f.field_container :event_name do %>
        <%= f.label :event_name %>
        <%= f.select :event_name, Spree::Activator.event_names.map{|name| [t("events.#{name}"), name] }, {}, {:class => 'select2 fullwidth'} %>
      <% end %>

      <%= f.field_container :code do %>
        <%= f.label :code %>
        <%= f.text_field :code, :class => 'fullwidth' %>
      <% end %>

      <%= f.field_container :path do %>
        <%= f.label :path %>
        <%= f.text_field :path, :class => 'fullwidth' %>
      <% end %>

      <%= f.field_container :advertise do %>
        <%= f.check_box :advertise %>
        <%= f.label :advertise %>
      <% end %>
    </div>

    <div class="omega nine columns">
      <%= f.field_container :description do %>
        <%= f.label :description %><br />
        <%= f.text_area :description, :rows => 7, :class => 'fullwidth' %>
      <% end %>      
    </div>
  </div>

  <div id="expiry_fields" class="three columns omega">
    <%= f.field_container :usage_limit do %>
      <%= f.label :usage_limit %><br />
      <%= f.number_field :usage_limit, :min => 0, :class => 'fullwidth' %><br>
      <%= t(:current_promotion_usage, :count => @promotion.credits_count) %>
    <% end %>
    
    <div id="starts_at_field" class="field">
      <%= f.label :starts_at %>
      <%= f.text_field :starts_at, :class => 'datepicker datepicker-from fullwidth' %>
    </div>

    <div id="expires_at_field" class="field">
      <%= f.label :expires_at %>
      <%= f.text_field :expires_at, :class => 'datepicker datepicker-top fullwidth' %>
    </div>  
  </div>
</div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spree_promo-1.3.1 app/views/spree/admin/promotions/_form.html.erb
spree_promo-1.3.0 app/views/spree/admin/promotions/_form.html.erb
spree_promo-1.3.0.rc2 app/views/spree/admin/promotions/_form.html.erb
dup_spree_promo-1.3.0.rc1 app/views/spree/admin/promotions/_form.html.erb
spree_promo-1.3.0.rc1 app/views/spree/admin/promotions/_form.html.erb