<commit_before><% provide(:title, "Ergebnisse verwalten") %>

<p><%= page_entries_info @performances, model: Performance %></p>

<%= will_paginate @performances %>

<table class="table table-bordered">
  <thead>
    <tr>
      <th>Kategorie</th>
      <th>Teilnehmer</th>
      <th>AG</th>
      <th>Punkte</th>
      <th>Preis</th>
      <th>&nbsp;</th>
    </tr>
  </thead>
  <tbody id="appearance-rows">
    <% @performances.each do |performance| %>
      <% performance.appearances.each do |appearance| %>
      <tr>
        <% if appearance == performance.appearances.first %>
        <td rowspan="<%= performance.appearances.length %>"><%= performance.category.name %></td>
        <% end %>
        <td><%= appearance.participant.full_name %>, <%= appearance.instrument.name %></td>
        <td><%= info_badge_tag(appearance.age_group, :info) %></td>
        <td><%= info_badge_tag(appearance.points.to_s, :important) if appearance.points %></td>
        <td>
          <%= appearance.prize %>
          <%= info_label_tag("WL", :success) if appearance.may_advance_to_next_round? %>
        </td>
        <td><%= link_to_modal icon_tag("edit", title: "Punkte bearbeiten"), "appearance", appearance.id %></td>
      </tr>
      <% end %>
    <% end %>
  </tbody>
</table>

<%= will_paginate @performances %>

<!-- Modals (invisible by default) -->
<% @performances.each do |performance| %>
  <% performance.appearances.each do |appearance| %>
    <%= render layout: "modal", locals: { item_type: "appearance", item_id: appearance.id, title: "#{appearance.participant.full_name}, #{appearance.instrument.name}" } do %>
      <%= simple_form_for([:jmd, appearance], html: { class: "form-horizontal" }) do |form| %><commit_msg>Made appearances show up in role order (soloists first) in points entry table<commit_after><% provide(:title, "Ergebnisse verwalten") %>

<p><%= page_entries_info @performances, model: Performance %></p>

<%= will_paginate @performances %>

<table class="table table-bordered">
  <thead>
    <tr>
      <th>Kategorie</th>
      <th>Teilnehmer</th>
      <th>AG</th>
      <th>Punkte</th>
      <th>Preis</th>
      <th>&nbsp;</th>
    </tr>
  </thead>
  <tbody id="appearance-rows">
    <% @performances.each do |performance| %>
      <% performance.appearances.role_order.each do |appearance| %>
      <tr>
        <% if appearance == performance.appearances.first %>
        <td rowspan="<%= performance.appearances.length %>"><%= performance.category.name %></td>
        <% end %>
        <td><%= appearance.participant.full_name %>, <%= appearance.instrument.name %></td>
        <td><%= info_badge_tag(appearance.age_group, :info) %></td>
        <td><%= info_badge_tag(appearance.points.to_s, :important) if appearance.points %></td>
        <td>
          <%= appearance.prize %>
          <%= info_label_tag("WL", :success) if appearance.may_advance_to_next_round? %>
        </td>
        <td><%= link_to_modal icon_tag("edit", title: "Punkte bearbeiten"), "appearance", appearance.id %></td>
      </tr>
      <% end %>
    <% end %>
  </tbody>
</table>

<%= will_paginate @performances %>

<!-- Modals (invisible by default) -->
<% @performances.each do |performance| %>
  <% performance.appearances.each do |appearance| %>
    <%= render layout: "modal", locals: { item_type: "appearance", item_id: appearance.id, title: "#{appearance.participant.full_name}, #{appearance.instrument.name}" } do %>
      <%= simple_form_for([:jmd, appearance], html: { class: "form-horizontal" }) do |form| %>
{'fraction_non_alphanumeric': 0.19264497878359266, 'fraction_numerical': 0.0, 'mean_word_length': 3.42, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '3092486', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1180, 'n_words': 230}