<%= render 'shared/error_messages', :target => @promotion %>
<%= t(:general) %> <%= f.field_container :name do %> <%= f.label :name %>
<%= f.text_field :name %> <% end %> <%= f.field_container :event_name do %> <%= f.label :event_name, t(:event) %>
<%= f.select :event_name, Activator.event_names.map{|name| [t("events.#{name}"), name] } %> <% end %> <%= f.field_container :preferred_code do %> <%= f.label :preferred_code, t(:code) %>
<%= f.text_field :preferred_code %> <% end %> <%= f.field_container :description do %> <%= f.label :description %>
<%= f.text_area :description, :style => "height:50px;" %> <% end %> <%= f.field_container :preferred_advertise do %> <%= f.check_box :preferred_advertise %> <%= f.label :preferred_advertise, t(:advertise) %> <% end %>
<%= t(:expiry) %>

<%= f.label :preferred_usage_limit, t(:usage_limit) %>
<%= f.text_field :preferred_usage_limit %>

<%= f.label :starts_at %> <%= f.text_field :starts_at, :class => 'datepicker' %>

<%= f.label :expires_at %> <%= f.text_field :expires_at, :class => 'datepicker' %>