From 8f4c0edb4c41005d3ca3662398e698c1929d6665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Mon, 9 Sep 2024 15:37:14 +0200 Subject: [PATCH] Added link in operator view to edit job --- app/views/operator/jobs/_job_tr.html.erb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/views/operator/jobs/_job_tr.html.erb b/app/views/operator/jobs/_job_tr.html.erb index f03a925..0da7b1b 100644 --- a/app/views/operator/jobs/_job_tr.html.erb +++ b/app/views/operator/jobs/_job_tr.html.erb @@ -45,9 +45,17 @@ <% end %> - - <%= job.costum_qm_plan.round(2) %> m² - + <% if job.printing? %> + <%= link_to edit_operator_job_path(job) do %> + + <%= job.costum_qm_plan.round(2) %> m² + + <% end %> + <% else %> + + <%= job.costum_qm_plan.round(2) %> m² + + <% end %>