<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @promotion } %>
<%= 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 %>
<%= f.field_container :description do %> <%= f.label :description %>
<%= f.text_area :description, :rows => 7, :class => 'fullwidth' %> <% end %>
<%= f.field_container :usage_limit do %> <%= f.label :usage_limit %>
<%= f.number_field :usage_limit, :min => 0, :class => 'fullwidth' %>
<%= t(:current_promotion_usage, :count => @promotion.credits_count) %> <% end %>
<%= f.label :starts_at %> <%= f.text_field :starts_at, :class => 'datepicker datepicker-from fullwidth' %>
<%= f.label :expires_at %> <%= f.text_field :expires_at, :class => 'datepicker datepicker-top fullwidth' %>