<commit_before><% fieldset_class  ||= '' %>
<% select_label_id ||= '' %>

<%= form_tag collections.collections_path, method: :put do %>
  <fieldset class="required <%= fieldset_class %>">
    <%= hidden_field_tag 'collection[members]', 'add' %>
    <%= hidden_field_tag 'batch_document_ids[]', collectible.pid %>

    <div class="control-group collection_id">
      <div class="controls">
        <% options = "" %>
        <% collections = available_collections(collectible) %>
        <% if collections.any? -%>
          <% options << '<optgroup label="Your Collections">'.html_safe %>
          <% options << options_from_collection_for_select(collections, "pid", "title") %>
          <% options << '</optgroup>'.html_safe %>
        <% end %>
        <%= select_tag :id, options, prompt: 'Make a Selection', class: 'form-control', :'aria-labelledby' => select_label_id %>
      </div>
    </div>

  </fieldset>
  <div class="form-actions">
    <%= submit_tag "Add It!", class: 'btn btn-primary' %>
    <%= link_to 'never mind', root_path, class: 'btn btn-link', data: { dismiss: 'modal' } %>
  </div>
<% end %><commit_msg>Fixed bad layout on form to add collection member.<commit_after><% fieldset_class  ||= '' %>
<% select_label_id ||= '' %>

<%= form_tag collections.collections_path, method: :put do %>
  <fieldset class="required <%= fieldset_class %>">
    <%= hidden_field_tag 'collection[members]', 'add' %>
    <%= hidden_field_tag 'batch_document_ids[]', collectible.pid %>

    <div class="control-group collection_id">
      <div class="controls">
        <% options = "" %>
        <% collections = available_collections(collectible) %>
        <% if collections.any? -%>
          <% options << '<optgroup label="Your Collections">'.html_safe %>
          <% options << options_from_collection_for_select(collections, "pid", "title") %>
          <% options << '</optgroup>'.html_safe %>
        <% end %>
        <%= select_tag :id, options, prompt: 'Make a Selection', class: 'form-control', :'aria-labelledby' => select_label_id %>
      </div>
    </div>

  </fieldset>
  <div class="form-actions with-side-padding with-footroom">
    <%= submit_tag "Add It!", class: 'btn btn-primary' %>
    <%= link_to 'never mind', root_path, class: 'btn btn-link', data: { dismiss: 'modal' } %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.18838709677419355, 'fraction_numerical': 0.0, 'mean_word_length': 3.4816955684007707, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 59, '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': '6611289', 'n_tokens_mistral': 787, 'n_tokens_neox': 715, 'n_words': 154}