<commit_before><%= 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, @event_names, {}, {: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>
      <%= Spree.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, :value => datepicker_field_value(@promotion.starts_at), :class => 'datepicker datepicker-from fullwidth' %>
    </div>

    <div id="expires_at_field" class="field">
      <%= f.label :expires_at %>
      <%= f.text_field :expires_at, :value => datepicker_field_value(@promotion.expires_at), :class => 'datepicker datepicker-to fullwidth' %>
    </div>
  </div>
</div><commit_msg>Add missing span info tag around help text.<commit_after><%= 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, @event_names, {}, {: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>
      <span class="info">
        <%= Spree.t(:current_promotion_usage, :count => @promotion.credits_count) %>
      </span>
    <% end %>

    <div id="starts_at_field" class="field">
      <%= f.label :starts_at %>
      <%= f.text_field :starts_at, :value => datepicker_field_value(@promotion.starts_at), :class => 'datepicker datepicker-from fullwidth' %>
    </div>

    <div id="expires_at_field" class="field">
      <%= f.label :expires_at %>
      <%= f.text_field :expires_at, :value => datepicker_field_value(@promotion.expires_at), :class => 'datepicker datepicker-to fullwidth' %>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.19541062801932368, 'fraction_numerical': 0.0014492753623188406, 'mean_word_length': 2.7611262488646684, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5996720', 'n_tokens_mistral': 1546, 'n_tokens_neox': 1386, 'n_words': 289}