<commit_before><h2><%= t("admin.tags.index.add_tag") %></h2>

<%= form_for(@tag, url: admin_tags_path, as: :tag) do |f| %>

  <div class="row">
    <div class="small-12 medium-6 column">
      <%= f.label :name, t("admin.tags.name.placeholder") %>
      <%= f.text_field :name, placeholder: t("admin.tags.name.placeholder"), label: false  %>
    </div>

    <div class="is-featured small-12 medium-6 column">
      <%= f.label :featured do %>
        <%= f.check_box :featured, label: false %>
        <span class="checkbox"><%= t("admin.tags.mark_as_featured") %></span>
      <% end %>
    </div>
  </div>

  <%= f.submit(class: "button radius create") %>

<% end %>

<h3><%= t("admin.tags.index.title") %></h3>

<ul class="admin-list">
  <% @tags.each do |tag| %>
    <li>
      <span class="tag"><%= tag.name %></span>

      <%= form_for(tag,
          url: admin_tag_path(tag),
          as: :tag,
          html: { id: "edit_tag_#{tag.id}", class: "text-right"}) do |f| %>

        <%= f.label :featured do %>
          <%= f.check_box :featured, label: false, id: "tag_featured_#{tag.id}", class: "left" %>
          <span class="checkbox left"><%= t("admin.tags.mark_as_featured") %></span>
        <% end %>

        <%= f.submit(class: "button radius tiny success") %>
        <br>
        <%= link_to t("admin.tags.destroy"), admin_tag_path(tag), method: :delete, class: "delete" %>
      <% end %>
    </li>
  <% end %>
</ul><commit_msg>makes labels work in admin/tags<commit_after><h2><%= t("admin.tags.index.add_tag") %></h2>

<%= form_for(@tag, url: admin_tags_path, as: :tag) do |f| %>

  <div class="row">
    <div class="small-12 medium-6 column">
      <%= f.label :name, t("admin.tags.name.placeholder") %>
      <%= f.text_field :name, placeholder: t("admin.tags.name.placeholder"), label: false  %>
    </div>

    <div class="is-featured small-12 medium-6 column">
      <%= f.label :featured do %>
        <%= f.check_box :featured, label: false %>
        <span class="checkbox"><%= t("admin.tags.mark_as_featured") %></span>
      <% end %>
    </div>
  </div>

  <%= f.submit(class: "button radius create") %>

<% end %>

<h3><%= t("admin.tags.index.title") %></h3>

<ul class="admin-list">
  <% @tags.each do |tag| %>
    <li>
      <span class="tag"><%= tag.name %></span>

      <%= form_for(tag,
          url: admin_tag_path(tag),
          as: :tag,
          html: { id: "edit_tag_#{tag.id}", class: "text-right"}) do |f| %>

        <%= f.label "featured_#{tag.id}" do %>
          <%= f.check_box :featured, label: false, id: "tag_featured_#{tag.id}", class: "left" %>
          <span class="checkbox left"><%= t("admin.tags.mark_as_featured") %></span>
        <% end %>

        <%= f.submit(class: "button radius tiny success") %>
        <br>
        <%= link_to t("admin.tags.destroy"), admin_tag_path(tag), method: :delete, class: "delete" %>
      <% end %>
    </li>
  <% end %>
</ul>
{'fraction_non_alphanumeric': 0.22669853192215772, 'fraction_numerical': 0.006828269033799932, 'mean_word_length': 2.7904269081500646, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, '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': '5918473', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1060, 'n_words': 221}