summaryrefslogtreecommitdiff
path: root/app/views/admin/dashboard/tmp
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/dashboard/tmp')
-rw-r--r--app/views/admin/dashboard/tmp19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/admin/dashboard/tmp b/app/views/admin/dashboard/tmp
new file mode 100644
index 0000000..986fc28
--- /dev/null
+++ b/app/views/admin/dashboard/tmp
@@ -0,0 +1,19 @@
+<% ScoringCriterium.grouped_by_category.each do |category, criteria| %>
+ <h3><%= category.capitalize %></h3>
+ <table>
+ <thead>
+ <tr>
+ <th>Numéro</th>
+ <th>Score</th>
+ </tr>
+ </thead>
+ <tbody>
+ <% @tartiflettes.each do |tartiflette| %>
+ <tr>
+ <td><%= tartiflette.scoring_id %></td>
+ <td><%= tartiflette.scores.where(&:scoring_criterium.include? criteria) %></td>
+ </tr>
+ <% end %>
+ </tbody>
+ </table>
+<% end %>
Copyright 2019--2025 Marius PETER