From 7d328368e959cb759feb65b6ed076724e6c6aeae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Wed, 11 Sep 2024 07:13:32 +0200 Subject: [PATCH] Small job list fixes --- app/assets/stylesheets/application.tailwind.css | 2 +- app/views/operator/jobs/_job_tr.html.erb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css index 0f9391b..58481b7 100644 --- a/app/assets/stylesheets/application.tailwind.css +++ b/app/assets/stylesheets/application.tailwind.css @@ -13,7 +13,7 @@ @apply text-sm font-medium text-center font-bold rounded-lg uppercase bg-gray-300 bg-opacity-50 px-2 py-1.5 shadow; } .badge-hover { - @apply p-1 hover:bg-opacity-75; + @apply hover:bg-opacity-75; } .badge-xl { @apply text-2xl; diff --git a/app/views/operator/jobs/_job_tr.html.erb b/app/views/operator/jobs/_job_tr.html.erb index 0da7b1b..4413056 100644 --- a/app/views/operator/jobs/_job_tr.html.erb +++ b/app/views/operator/jobs/_job_tr.html.erb @@ -29,7 +29,7 @@ <% if job.printing? %>
- + <%= button_to icon("chevron-up", class: "size-5 inline", title: "erhöhen"), increment_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %> <% end %> @@ -37,7 +37,7 @@ <%= job.public_send("number_of_plans_#{din}") if job.respond_to? "number_of_plans_#{din}" %> <% if job.printing? %> - + <%= button_to icon("chevron-down", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
@@ -47,7 +47,7 @@ <% if job.printing? %> <%= link_to edit_operator_job_path(job) do %> - + <%= job.costum_qm_plan.round(2) %> m² <% end %> @@ -87,7 +87,7 @@ <% end %> <% if job.pickup? || job.printing? %> <% job.printing? && turbo_confirm = 'Sind die Pläne gedruckt und die Seitenanzahl und QM korrekt?' %> - <%= button_to icon(status_icon(:paid), class: "icon icon-hover", title: "Bezahlt"), operator_job_path(job), method: :patch, params: {:job => {status: :paid}}, form: {data: {turbo_confirm: turbo_confirm}}, form_class: "inline" %> + <%= button_to icon(status_icon(:paid), class: "icon icon-hover", title: "Bezahlt und abgeholt"), operator_job_path(job), method: :patch, params: {:job => {status: :paid}}, form: {data: {turbo_confirm: turbo_confirm}}, form_class: "inline" %> <% else %> <%= icon(status_icon(:paid), class: "icon icon-disabled ", title: "") %> <% end %>