Small job list fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<td class="p-1 py-3">
|
||||
<% if job.printing? %>
|
||||
<div class="flex flex-col items-center">
|
||||
<span class="badge badge-hover">
|
||||
<span class="badge badge-hover p-1">
|
||||
<%= button_to icon("chevron-up", class: "size-5 inline", title: "erhöhen"), increment_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
|
||||
</span>
|
||||
<% end %>
|
||||
@@ -37,7 +37,7 @@
|
||||
<%= job.public_send("number_of_plans_#{din}") if job.respond_to? "number_of_plans_#{din}" %>
|
||||
</span>
|
||||
<% if job.printing? %>
|
||||
<span class="badge badge-hover">
|
||||
<span class="badge badge-hover p-1">
|
||||
<%= button_to icon("chevron-down", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
|
||||
</span>
|
||||
</div>
|
||||
@@ -47,7 +47,7 @@
|
||||
<td class="p-2 py-3 text-right">
|
||||
<% if job.printing? %>
|
||||
<%= link_to edit_operator_job_path(job) do %>
|
||||
<span class="badge">
|
||||
<span class="badge badge-hover">
|
||||
<%= job.costum_qm_plan.round(2) %> m²
|
||||
</span>
|
||||
<% 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 %>
|
||||
|
||||
Reference in New Issue
Block a user