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;
|
@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 {
|
.badge-hover {
|
||||||
@apply p-1 hover:bg-opacity-75;
|
@apply hover:bg-opacity-75;
|
||||||
}
|
}
|
||||||
.badge-xl {
|
.badge-xl {
|
||||||
@apply text-2xl;
|
@apply text-2xl;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<td class="p-1 py-3">
|
<td class="p-1 py-3">
|
||||||
<% if job.printing? %>
|
<% if job.printing? %>
|
||||||
<div class="flex flex-col items-center">
|
<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" %>
|
<%= 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>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
<%= job.public_send("number_of_plans_#{din}") if job.respond_to? "number_of_plans_#{din}" %>
|
<%= job.public_send("number_of_plans_#{din}") if job.respond_to? "number_of_plans_#{din}" %>
|
||||||
</span>
|
</span>
|
||||||
<% if job.printing? %>
|
<% 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" %>
|
<%= button_to icon("chevron-down", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
<td class="p-2 py-3 text-right">
|
<td class="p-2 py-3 text-right">
|
||||||
<% if job.printing? %>
|
<% if job.printing? %>
|
||||||
<%= link_to edit_operator_job_path(job) do %>
|
<%= link_to edit_operator_job_path(job) do %>
|
||||||
<span class="badge">
|
<span class="badge badge-hover">
|
||||||
<%= job.costum_qm_plan.round(2) %> m²
|
<%= job.costum_qm_plan.round(2) %> m²
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<% if job.pickup? || job.printing? %>
|
<% if job.pickup? || job.printing? %>
|
||||||
<% job.printing? && turbo_confirm = 'Sind die Pläne gedruckt und die Seitenanzahl und QM korrekt?' %>
|
<% 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 %>
|
<% else %>
|
||||||
<%= icon(status_icon(:paid), class: "icon icon-disabled ", title: "") %>
|
<%= icon(status_icon(:paid), class: "icon icon-disabled ", title: "") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user