From be2a93525069de2dfa3c23b0c23e7a9f7ad4c03d Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 29 Dec 2024 15:14:43 +0100 Subject: First commit. --- app/views/admin/dashboard/index.html.erb | 10 ++++++++++ app/views/admin/dashboard/tmp | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 app/views/admin/dashboard/index.html.erb create mode 100644 app/views/admin/dashboard/tmp (limited to 'app/views/admin') diff --git a/app/views/admin/dashboard/index.html.erb b/app/views/admin/dashboard/index.html.erb new file mode 100644 index 0000000..30cf866 --- /dev/null +++ b/app/views/admin/dashboard/index.html.erb @@ -0,0 +1,10 @@ +

Administrateur

+ + + +

+ <%= button_to "Déconnexion", + session_path(session), + method: :delete %> +

+

<%= link_to "Télécharger tous les scores en format CSV", admin_scores_export_path %>

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| %> +

<%= category.capitalize %>

+ + + + + + + + + <% @tartiflettes.each do |tartiflette| %> + + + + + <% end %> + +
NuméroScore
<%= tartiflette.scoring_id %><%= tartiflette.scores.where(&:scoring_criterium.include? criteria) %>
+<% end %> -- cgit v1.2.3