<commit_before><div class="small-12 columns">
  <%= form_for @groupbuy, data: {abide: ''}  ,:html => {:multipart => true} do|f| %>
  <%= render 'layouts/form_errors', object: @groupbuy %>
  <div>
    <%= f.text_field :title, required: true,placeholder: "#{t(:groupbuy)} #{t(:title)}" %>
    <!--  <%#= show_error_message('团购名称，不能为空！') %> -->
  </div>
  <div>    
    <p><%=t(:please_choose_groupbuy_duration)%></p>
    <table class="table">
      <thead>
        <tr>         
          <th> <%#= f.label :start_time %>
            <%= f.text_field :start_time, required: true,:class=>"span2",:id=>"dpd2",placeholder: t(:start_time)%>
          </th>
          <th><%#= f.label :end_time %>
           <%= f.text_field :end_time, required: true,:class=>"span2",:id=>"dpd1",placeholder: t(:end_time)%>
         </th>
       </tr>
     </thead>
   </table>
 </div>
 <div>
  <%#= f.label :pic_url %>
  <div class="left"><%=t(:pic_url)%></div>
  <div class="left picture-upload"><%= file_field_tag :file%></div>
  <div class="clear"></div>
  <!-- <%#= show_error_message('请上传活动图片') %> -->
  <%#= f.text_field :pic_url, required: true%>
</div>
<div class='groupbuy-conditions row collapse'>
  <div class="small-3 columns">
    <span class="price postfix">
      <%= t(:price) %>
    </span>
  </div>
  <div class="small-2 columns">
    <span class="price postfix">
      <!-- <%#= f.label :price %> -->
      <%= f.text_field :price %>
    </span>
  </div>

  <div class="small-5 columns">
    <span class="market_price postfix">
      <%= t(:market_price) %>
    </span>
  </div>
  <div class="small-2 columns">
    <span class="market_price postfix">
      <%= f.text_field :market_price %>
    </span>
  </div>


  <div class="small-3 columns">
    <span class="goods-unit postfix">
      <%= t(:goods_unit) %>
    </span>
  </div>
  <div class="small-2 columns">
    <span class="goods-unit postfix">
      <%= f.text_field :goods_unit %>
    </span>
  </div>
  
  <div class="small-5 columns">
    <span class="market_price postfix">
      <%= t(:goods_minimal) %>
    </span>
  </div>
  <div class="small-2 columns">
    <span class="goods-minimal postfix">
      <!-- <%#= f.label :goods_minimal %> -->
      <%= f.text_field :goods_minimal %>
    </span>
  </div>

</div>

<div class="row collapse goods-maximal">
  <div class="small-3 columns">
    <span class="postfix"><%= t(:inventory) %></span>
  </div>
  <div class="small-6 columns">
    <span class="postfix">
      <%= f.text_field :goods_maximal %>
    </span>
  </div>
  <div class="small-3 columns">
    <span class="postfix goods-unit-blank"></span>
  </div>
</div>

 <!--  <div>
    <%= f.text_field :name, required: true, placeholder: '姓名'%>
    <%= show_error_message('活动联系人')%>
  </div>
  <div>
    <%= f.text_field :mobile, required: true, placeholder: '手机'%>
    <%#= show_error_message('活动联系电话')%>
  </div> -->
  <div>
    <%#= f.label :body %>
    <%= f.text_area :body,placeholder: t(:body), rows: 5%>
    <!-- <%#= f.cktext_area :body, :class => 'someclass', :ckeditor => {:language => 'zh'} , required: true%> -->
    <!-- <%#= show_error_message('内容请不要超过1千字')%> -->
  </div>
  <div>
   <%= f.submit class:'tiny button radius right' %>
 </div>
 <% end %>
</div>
<div class="upload-forms">
  <div class="upload-form">
    <%= form_tag groupbuys_upload_path, remote: true, :html => {:multipart => true, class: "upload-file"} do %>
    <%= hidden_field_tag request_forgery_protection_token.to_s, form_authenticity_token %><commit_msg>Revert "add form_authenticity_token"<commit_after><div class="small-12 columns">
  <%= form_for @groupbuy, data: {abide: ''}  ,:html => {:multipart => true} do|f| %>
  <%= render 'layouts/form_errors', object: @groupbuy %>
  <div>
    <%= f.text_field :title, required: true,placeholder: "#{t(:groupbuy)} #{t(:title)}" %>
    <!--  <%#= show_error_message('团购名称，不能为空！') %> -->
  </div>
  <div>    
    <p><%=t(:please_choose_groupbuy_duration)%></p>
    <table class="table">
      <thead>
        <tr>         
          <th> <%#= f.label :start_time %>
            <%= f.text_field :start_time, required: true,:class=>"span2",:id=>"dpd2",placeholder: t(:start_time)%>
          </th>
          <th><%#= f.label :end_time %>
           <%= f.text_field :end_time, required: true,:class=>"span2",:id=>"dpd1",placeholder: t(:end_time)%>
         </th>
       </tr>
     </thead>
   </table>
 </div>
 <div>
  <%#= f.label :pic_url %>
  <div class="left"><%=t(:pic_url)%></div>
  <div class="left picture-upload"><%= file_field_tag :file%></div>
  <div class="clear"></div>
  <!-- <%#= show_error_message('请上传活动图片') %> -->
  <%#= f.text_field :pic_url, required: true%>
</div>
<div class='groupbuy-conditions row collapse'>
  <div class="small-3 columns">
    <span class="price postfix">
      <%= t(:price) %>
    </span>
  </div>
  <div class="small-2 columns">
    <span class="price postfix">
      <!-- <%#= f.label :price %> -->
      <%= f.text_field :price %>
    </span>
  </div>

  <div class="small-5 columns">
    <span class="market_price postfix">
      <%= t(:market_price) %>
    </span>
  </div>
  <div class="small-2 columns">
    <span class="market_price postfix">
      <%= f.text_field :market_price %>
    </span>
  </div>


  <div class="small-3 columns">
    <span class="goods-unit postfix">
      <%= t(:goods_unit) %>
    </span>
  </div>
  <div class="small-2 columns">
    <span class="goods-unit postfix">
      <%= f.text_field :goods_unit %>
    </span>
  </div>
  
  <div class="small-5 columns">
    <span class="market_price postfix">
      <%= t(:goods_minimal) %>
    </span>
  </div>
  <div class="small-2 columns">
    <span class="goods-minimal postfix">
      <!-- <%#= f.label :goods_minimal %> -->
      <%= f.text_field :goods_minimal %>
    </span>
  </div>

</div>

<div class="row collapse goods-maximal">
  <div class="small-3 columns">
    <span class="postfix"><%= t(:inventory) %></span>
  </div>
  <div class="small-6 columns">
    <span class="postfix">
      <%= f.text_field :goods_maximal %>
    </span>
  </div>
  <div class="small-3 columns">
    <span class="postfix goods-unit-blank"></span>
  </div>
</div>

 <!--  <div>
    <%= f.text_field :name, required: true, placeholder: '姓名'%>
    <%= show_error_message('活动联系人')%>
  </div>
  <div>
    <%= f.text_field :mobile, required: true, placeholder: '手机'%>
    <%#= show_error_message('活动联系电话')%>
  </div> -->
  <div>
    <%#= f.label :body %>
    <%= f.text_area :body,placeholder: t(:body), rows: 5%>
    <!-- <%#= f.cktext_area :body, :class => 'someclass', :ckeditor => {:language => 'zh'} , required: true%> -->
    <!-- <%#= show_error_message('内容请不要超过1千字')%> -->
  </div>
  <div>
   <%= f.submit class:'tiny button radius right' %>
 </div>
 <% end %>
</div>
<div class="upload-forms">
  <div class="upload-form">
    <%= form_tag groupbuys_upload_path, remote: true, :html => {:multipart => true, class: "upload-file"} do %>
{'fraction_non_alphanumeric': 0.23013816925734024, 'fraction_numerical': 0.005469199769717904, 'mean_word_length': 3.1240356083086054, 'pattern_counts': {'":': 0, '<': 260, '<?xml version=': 0, '>': 282, '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': '4103479', 'n_tokens_mistral': 2791, 'n_tokens_neox': 2664, 'n_words': 493}