From fa77a691ce0cc8941fe470a762f352b27f4f0563 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 23 Nov 2025 17:54:45 +0100 Subject: Last commit. --- app/views/targets/new.html.erb | 85 ------------------------------------------ 1 file changed, 85 deletions(-) (limited to 'app/views/targets/new.html.erb') diff --git a/app/views/targets/new.html.erb b/app/views/targets/new.html.erb index 42cb7bd..e69de29 100644 --- a/app/views/targets/new.html.erb +++ b/app/views/targets/new.html.erb @@ -1,85 +0,0 @@ -<% content_for :title, "Ajouter une Cible" %> - -

Ajouter une Cible

- -<%= form_with(model: @target) do |f| %> -
-
- <%= f.text_field :name, class: "form-control", placeholder: "Nom de la cible" %> -
- -
-
- - - - - - - - - <%= f.fields_for :target_allocations do |af| %> - <% np = af.object.nutrient_profile %> - - - - - <% end %> - - - - - - - -
ProfilProportion
- <%= af.hidden_field :nutrient_profile_id %> - <%= np&.name.capitalize || "Profil ##{af.object.nutrient_profile_id}" %> - -
- <%= af.number_field :percentage, - in: 0..100, step: 0.5, - class: "form-control text-end alloc-input", - placeholder: "0.0", - data: { action: "input->alloc#sum" } %> - % -
-
Ajustez chaque pourcentage pour totaliser 100%. - Total : 0% -
-
-
- - -
-<% end %> - - -- cgit v1.2.3