<commit_before><% title 'New Bounty', @product.name %>
<% activate_nav! :bounties %>

<div class="page-header sheet-header">
  <h2 class="page-header-title">Create a Bounty</h2>
</div>

<div class="sheet-body">
  <div class="row">
    <div class="col-md-9 col-xs-9">
      <%= form_for [@product, @wip] do |f| %>
        <div class="form-group">
          <%= f.label :title, 'class' => 'form-label' %>
          <%= f.text_field :title, 'value' => params[:title], 'class' => 'form-control', 'data-validate-length' => '2', 'autofocus' => 'autofocus' %>
        </div>

        <div style="display:none;">
          <select type="hidden" id="tag-list-hack" name="task[tag_list][]" multiple="true"></select>
        </div>

        <div class="form-group">
          <%= f.label :description, 'Details', class: 'control-label' %>

          <div class="markdown-editor-control js-markdown-editor dropzone js-dropzone">
            <%= text_area_tag :description, '', class: 'form-control', rows: 4, required: true %>
            <div class="dropzone-inner js-dropzone-select">
              To attach files drag &amp; drop here or <a href="#">select files
              from your computer</a>...
            </div>
          </div>
        </div>

        <h6 style="margin-bottom: 0;">Tags</h6>
        <div style="margin-bottom: 10px"
             data-react-class="TagList"
             data-react-props="<%= {
                tags: (@wip.tags ? @wip.tags.map do |tag|
                  tag.name
                end.as_json : []),
                filterUrl: product_wips_path(@wip.product),
                destination: true
              }.to_json %>">
        </div>

        <div data-react-class="TextComplete"
             data-react-props="<%= {
               width: "125px",
               size: "small",
               label: "Add tag",
               prepend: "#",
               prompt: "Add",
               filterUrl: product_wips_path(@wip.product)
             }.to_json %>">
        </div>

        <h6 style="margin-bottom: 0; margin-top: 20px;">Suggested tags</h6>
        <div data-react-class="TagList"
              data-react-props="<%= {
                tags: Wip::Tag.suggested_tags.as_json,
                destination: false
              }.to_json %>">
        </div>

        <div class="form-actions">
          <%= f.button 'Create bounty', 'class' => 'btn btn-primary', 'data-disable-with' => 'Saving...' %>
        </div>
      <% end %>
    </div>
  </div>
</div><commit_msg>Rejig the new bounty page.<commit_after><% title 'New Bounty', @product.name %>
<% activate_nav! :bounties %>

<div class="page-header sheet-header">
  <h2 class="page-header-title">Create a Bounty</h2>
</div>

<div class="sheet-body">
  <div class="row">
    <%= form_for [@product, @wip] do |f| %>
      <div class="col-md-9 col-xs-9">
        <div class="form-group">
          <%= f.label :title, class: 'form-label' %>
          <%= f.text_field :title, value: params[:title], class: %W(form-control input-lg), 'data-validate-length' => '2', autofocus: true %>
        </div>

        <div class="form-group">
          <%= f.label :description, 'Details', class: 'control-label' %>

          <div class="markdown-editor-control js-markdown-editor dropzone js-dropzone">
            <%= text_area_tag :description, '', class: 'form-control', rows: 4, required: true %>
            <div class="dropzone-inner js-dropzone-select">
              To attach files drag &amp; drop here or <a href="#">select files
              from your computer</a>...
            </div>
          </div>
        </div>  

        <div class="clearfix">
          <%= f.button 'Create bounty', class: %w(btn btn-primary pull-right), 'data-disable-with' => 'Creating...' %>
        </div>

      </div>

      <div class="col-md-3">

        <div style="display:none;">
          <select type="hidden" id="tag-list-hack" name="task[tag_list][]" multiple="true"></select>
        </div>

        <h6 style="margin-bottom: 0;">Tags</h6>
        <div style="margin-bottom: 10px"
             data-react-class="TagList"
             data-react-props="<%= {
                tags: (@wip.tags ? @wip.tags.map do |tag|
                  tag.name
                end.as_json : []),
                filterUrl: product_wips_path(@wip.product),
                destination: true
              }.to_json %>">
        </div>

        <div data-react-class="TextComplete"
             data-react-props="<%= {
               width: "125px",
               size: "small",
               label: "Add tag",
               prepend: "#",
               prompt: "Add",
               filterUrl: product_wips_path(@wip.product)
             }.to_json %>">
        </div>

        <h6 style="margin-bottom: 0; margin-top: 20px;">Suggested tags</h6>
        <div data-react-class="TagList"
              data-react-props="<%= {
                tags: Wip::Tag.suggested_tags.as_json,
                destination: false
              }.to_json %>">
        </div>

      </div>
    <% end %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.17760693869505223, 'fraction_numerical': 0.00768775872264932, 'mean_word_length': 1.8489612577203818, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 110, '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': '4908989', 'n_tokens_mistral': 1686, 'n_tokens_neox': 1555, 'n_words': 328}