From f60575fc8919cae0d333e1b9b423102345cb537b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Mon, 12 Aug 2024 01:11:29 +0200 Subject: [PATCH] Small design changes --- app/views/jobs/_job_tr.html.erb | 59 +++++++++++++++++++++++++-------- app/views/jobs/index.html.erb | 2 +- 2 files changed, 46 insertions(+), 15 deletions(-) diff --git a/app/views/jobs/_job_tr.html.erb b/app/views/jobs/_job_tr.html.erb index e2689c0..9554337 100644 --- a/app/views/jobs/_job_tr.html.erb +++ b/app/views/jobs/_job_tr.html.erb @@ -1,8 +1,12 @@ - + - <%= job.id %> + + <%= job.id %> + + + + <%= job.costumer_fullname %> - <%= job.costumer_fullname %> <% if job.pdf.attached? %> <%= image_tag url_for(job.pdf.preview(resize_to_limit: [100, 100])) %> @@ -12,24 +16,51 @@ <% 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 %> - <%= job.number_of_plans_a1 %> - <%= job.number_of_plans_a2 %> - <%= job.number_of_plans_a3 %> - <%= job.costum_qm_plan.round(2) %> m² - <%= job.cost.round(2) %> € - <%= job.status %> + + <%= job.number_of_plans_a0 %> + + + + + <%= job.number_of_plans_a1 %> + + + + + <%= job.number_of_plans_a2 %> + + + + + <%= job.number_of_plans_a3 %> + + + + + <%= job.costum_qm_plan.round(2) %> m² + + + + + <%= job.cost.round(2) %> € + + + + + <%= job.status %> + - <%= link_to icon("pencil-square", 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 icon("x-circle", class: "text-hsrm-red size-5 inline"), cancel_job_path(job), method: :patch, form: {data: {turbo_confirm: 'Den Plottauftrag wirklich abbrechen?'}}, form_class: "inline" %> + <%= button_to icon("x-circle", class: "text-hsrm-red size-8 inline", title: "Abbrechen"), cancel_job_path(job), method: :patch, form: {data: {turbo_confirm: 'Den Plottauftrag wirklich abbrechen?'}}, form_class: "inline" %> <% else %> - <%= icon("x-circle", class: "text-hsrm-gray text-opacity-50 size-5 inline") %> + <%= icon("x-circle", class: "text-hsrm-gray text-opacity-50 size-8 inline", title: "Kann nicht mehr abgebrochen werden") %> <% end %> diff --git a/app/views/jobs/index.html.erb b/app/views/jobs/index.html.erb index 94acce3..62d564f 100644 --- a/app/views/jobs/index.html.erb +++ b/app/views/jobs/index.html.erb @@ -20,7 +20,7 @@ noDIN Kosten Status - Actions +