diff --git a/app/views/jobs/_job_tr.html.erb b/app/views/jobs/_job_tr.html.erb index 02793eb..33fbe87 100644 --- a/app/views/jobs/_job_tr.html.erb +++ b/app/views/jobs/_job_tr.html.erb @@ -12,7 +12,7 @@ <% if job.pdf.attached? %> <%#= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %> <%= link_to job.pdf.filename, job.pdf, download:true %> - <%=number_to_human_size job.pdf.blob.byte_size%> + <%=number_to_human_size job.pdf.blob.byte_size%> <% end %> <%= job.number_of_plans_a0 %> @@ -22,12 +22,12 @@ <%= job.costum_qm_plan.round(2) %> m² <%= job.cost.round(2) %> € - <%= job.status %> + <%= job.status %> - <%= link_to "edit", edit_job_path(job), class: "p-1.5 ml-2 rounded-lg bg-gray-100 font-medium" %> + <%= link_to icon("pencil", class: "size-5 inline"), edit_job_path(job), classe: "p-1.5 ml-2 rounded-lg bg-gray-300 bg-opacity-50 font-medium" %> <% if job.able_to_cancel? %> - <%= button_to "cancel", cancel_job_path(job), method: :patch, class: "p-1.5 ml-2 rounded-lg bg-gray-100 font-medium" %> + <%= button_to "Abbrechen", cancel_job_path(job), method: :patch, form: {data: {turbo_confirm: 'Den Plottauftrag wirklich abbrechen?'}}, class: "p-1.5 inline ml-2 rounded-lg bg-gray-100 font-medium" %> <% end %> diff --git a/app/views/jobs/index.html.erb b/app/views/jobs/index.html.erb index d241af6..4e7424d 100644 --- a/app/views/jobs/index.html.erb +++ b/app/views/jobs/index.html.erb @@ -19,7 +19,7 @@ A3 noDIN Kosten - Status + Status Actions