Added status icons to the cards for operator view

This commit is contained in:
2024-08-14 00:16:06 +02:00
parent be9224a774
commit b8e107b7cc

View File

@@ -2,8 +2,9 @@
<% content_for :title, "Current Print Jobs" %>
<div class="flex space-x-4">
<%= link_to "#openjobs-h" do %>
<div class="flex-1 bg-status-open-light bg-opacity-50 text-status-open w-72 min-h-28 shadow-lg">
<div class="flex-1 bg-status-open-light bg-opacity-50 text-status-open w-72 min-h-28 shadow-lg ">
<h3 class="p-5 text-4xl">
<%= icon("inbox-stack", class: "text-status-paid size-10 inline drop-shadow") %>
Open
<span class="text-right block"><%= @openjobs.count %></span>
</h3>
@@ -12,6 +13,7 @@
<%= link_to "#printingjobs-h" do %>
<div class="flex-1 bg-status-printing-light bg-opacity-50 text-status-printing w-72 min-h-28 shadow-lg">
<h3 class="p-5 text-4xl">
<%= icon("printer", class: "text-status-paid size-10 inline drop-shadow") %>
Printing
<span class="text-right block"><%= @printingjobs.count %></span>
</h3>
@@ -20,6 +22,7 @@
<%= link_to "#pickupjobs-h" do %>
<div class="flex-1 bg-status-pickup-light bg-opacity-50 text-status-pickup w-72 min-h-28 shadow-lg">
<h3 class="p-5 text-4xl">
<%= icon("arrow-up-tray", class: "text-status-paid size-10 inline drop-shadow") %>
Pickup
<span class="text-right block"><%= @pickupjobs.count %></span>
</h3>
@@ -28,6 +31,7 @@
<%= link_to "#paidcanceledjobs-h" do %>
<div class="flex-1 bg-status-paid-light bg-opacity-50 text-status-paid w-72 min-h-28 shadow-lg">
<h3 class="p-5 text-4xl">
<%= icon("banknotes", class: "text-status-paid size-10 inline drop-shadow") %>
Paid
<span class="text-right block"><%= @paidjobs.count %></span>
</h3>
@@ -36,6 +40,7 @@
<%= link_to "#paidcanceledjobs-h" do %>
<div class="flex-1 bg-status-canceled-light bg-opacity-50 text-status-canceled w-72 min-h-28 shadow-lg">
<h3 class="p-5 text-4xl">
<%= icon("x-circle", class: "text-status-paid size-10 inline drop-shadow") %>
Canceled
<span class="text-right block"><%= @canceledjobs.count %></span>
</h3>