<commit_before><style>
  .inline-children > div { display: inline }
</style>

<% if flash[:error] %><div class="alert alert-error"><%= flash[:error] %></div><% end %>

<%= twitter_bootstrap_form_for @group, html: { :class => 'form-inline'}  do |f| %>
    <h3>Group</h3>
    <%= text_field_tag :group_name, "Group name", value: @group.name %>
    <%= submit_tag "Save", class: "btn" %>
    <%= link_to "Delete Group", admin_group_path(@group.name), 
        :method => :delete, confirm: "Deleted group cannot be recovered. Are you sure?", class: "btn btn-danger inline" %>

    <h3 style="margin-top: 35px">Group Members</h3>
    <%= text_field_tag :new_user, nil, placeholder: 'Enter a username here' %>
    <%= f.submit "Add user", class: "btn" %>
<% end %>

<%= form_tag update_users_admin_group_path, method: :put do %>
    <div style="line-height: 22px">
      <table class="table table-striped">
        <thead>
          <tr>
            <th><input type="checkbox" class="select-groups"></th>
            <th>Username</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <% @group.users.each do |user| %>
            <tr>
              <td><%= check_box_tag "user_ids[]", user %></td>
              <td><%= user %></td>
              <td></td>
            </tr>
           <% end %>
         </tbody>
      </table>
    </div>
    <%= hidden_field_tag 'id', @group.name %>
    <%= submit_tag "Remove members", :method => :delete, class: "btn btn-danger delete", disabled: true  %>    
<% end %>

<% content_for :page_scripts do %>
  <script>
    $('.select-groups').change(function(){
      $('input[id^=user_ids_]').prop('checked', $(this).is(':checked')).trigger('change');<commit_msg>Moving CSS to be more maintainable instead of baked into the view<commit_after><style>
  .inline-children > div { display: inline }
</style>

<% if flash[:error] %><div class="alert alert-error"><%= flash[:error] %></div><% end %>

<%= twitter_bootstrap_form_for @group, html: { :class => 'form-inline'}  do |f| %>
   <fieldset class="whitespace">
    <h3>Group</h3>
    <%= text_field_tag :group_name, "Group name", value: @group.name %>
    <%= submit_tag "Save", class: "btn" %>
    <%= link_to "Delete Group", admin_group_path(@group.name), 
        :method => :delete, confirm: "Deleted group cannot be recovered. Are you sure?", class: "btn btn-danger inline" %>
  </fieldset>

    <h3>Group Members</h3>
    <%= text_field_tag :new_user, nil, placeholder: 'Enter a username' %>
    <%= f.submit "Add user", class: "btn" %>
<% end %>

<%= form_tag update_users_admin_group_path, method: :put do %>
  <div> 
      <table class="table table-striped">
        <thead>
          <tr>
            <th><input type="checkbox" class="select-groups"></th>
            <th>Username</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <% @group.users.each do |user| %>
            <tr>
              <td><%= check_box_tag "user_ids[]", user %></td>
              <td><%= user %></td>
              <td></td>
            </tr>
           <% end %>
         </tbody>
      </table>
    </div>
    <%= hidden_field_tag 'id', @group.name %>
    <%= submit_tag "Remove members", :method => :delete, class: "btn btn-danger delete", disabled: true  %>    
<% end %>

<% content_for :page_scripts do %>
  <script>
    $('.select-groups').change(function(){
      $('input[id^=user_ids_]').prop('checked', $(this).is(':checked')).trigger('change');
{'fraction_non_alphanumeric': 0.19977103606182026, 'fraction_numerical': 0.0034344590726960505, 'mean_word_length': 2.6596858638743455, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 119, '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': '4316189', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1142, 'n_words': 270}