Some layout improvements

This commit is contained in:
2024-08-14 19:56:41 +02:00
parent 6990fa7e82
commit 241c5019c0
5 changed files with 135 additions and 133 deletions

View File

@@ -1,46 +1,48 @@
<%= turbo_stream_from 'operator_jobs' %>
<% content_for :title, "Current Print Jobs" %>
<div class="flex space-x-4">
<%= link_to "#openjobs-h" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-open-light text-status-open w-72 min-h-28 ">
<h3 class="p-5 text-4xl">
<%= icon("inbox-stack", class: "text-status-open size-10 inline drop-shadow") %>
<div class="grid gap-4 grids-cols-2">
</div>
<div class="flex space-x-4 justify-items-center">
<%= link_to "#openjobs-h", class: "flex-1" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-open-light text-status-open min-h-28 hover:bg-opacity-70">
<h3 class="p-4 text-3xl font-bold">
<%= icon("inbox-stack", class: "text-status-open size-8 inline drop-shadow -translate-y-1") %>
Open
<span class="block text-right"><%= @openjobs.count %></span>
</h3>
</div>
<% end %>
<%= link_to "#printingjobs-h" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-printing-light text-status-printing w-72 min-h-28">
<h3 class="p-5 text-4xl">
<%= icon("printer", class: "text-status-printing size-10 inline drop-shadow") %>
<%= link_to "#printingjobs-h", class: "flex-1" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-printing-light text-status-printing min-h-28 hover:bg-opacity-70">
<h3 class="p-4 text-3xl font-bold">
<%= icon("printer", class: "text-status-printing size-8 inline drop-shadow -translate-y-1") %>
Printing
<span class="block text-right"><%= @printingjobs.count %></span>
</h3>
</div>
<% end %>
<%= link_to "#pickupjobs-h" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-pickup-light text-status-pickup w-72 min-h-28">
<h3 class="p-5 text-4xl">
<%= icon("arrow-up-tray", class: "text-status-pickup size-10 inline drop-shadow") %>
<%= link_to "#pickupjobs-h", class: "flex-1" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-pickup-light text-status-pickup min-h-28 hover:bg-opacity-70">
<h3 class="p-4 text-3xl font-bold">
<%= icon("arrow-up-tray", class: "text-status-pickup size-8 inline drop-shadow -translate-y-1") %>
Pickup
<span class="block text-right"><%= @pickupjobs.count %></span>
</h3>
</div>
<% end %>
<%= link_to "#paidcanceledjobs-h" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-paid-light text-status-paid w-72 min-h-28">
<h3 class="p-5 text-4xl">
<%= icon("banknotes", class: "text-status-paid size-10 inline drop-shadow") %>
<%= link_to "#paidcanceledjobs-h", class: "flex-1" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-paid-light text-status-paid min-h-28 hover:bg-opacity-70">
<h3 class="p-4 text-3xl font-bold">
<%= icon("banknotes", class: "text-status-paid size-8 inline drop-shadow -translate-y-1") %>
Paid
<span class="block text-right"><%= @paidjobs.count %></span>
</h3>
</div>
<% end %>
<%= link_to "#paidcanceledjobs-h" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-canceled-light text-status-canceled w-72 min-h-28">
<h3 class="p-5 text-4xl">
<%= icon("x-circle", class: "text-status-canceled size-10 inline drop-shadow") %>
<%= link_to "#paidcanceledjobs-h", class: "flex-1" do %>
<div class="flex-1 bg-opacity-50 shadow-lg bg-status-canceled-light text-status-canceled min-h-28 hover:bg-opacity-70">
<h3 class="p-4 text-3xl font-bold">
<%= icon("x-circle", class: "text-status-canceled size-8 inline drop-shadow -translate-y-1") %>
Canceled
<span class="block text-right"><%= @canceledjobs.count %></span>
</h3>
@@ -49,7 +51,7 @@
</div>
<div class="w-full">
<div id="printingjobs-h" class="flex items-center justify-between py-4">
<h1 class="text-4xl font-bold text-hsrm-gray">
<h1 class="text-3xl font-bold text-hsrm-gray">
Printing
</h1>
<% if @openjobs.any? %>
@@ -69,20 +71,20 @@
<%# render partial: "job_card", collection: @printingjobs, as: :job %>
<div class="min-w-full overflow-auto shadow-lg">
<table class="w-full py-8 table-auto">
<thead class="bg-gray-200 border-b-2 border-gray-300 text-hsrm-gray">
<thead class="font-semibold tracking-wide bg-gray-200 border-b-2 border-gray-300 text text-hsrm-gray">
<tr>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> ID </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Vorschau </th>
<th class="p-3 text-sm font-semibold tracking-wide text-left"> Auftraggeber </th>
<th class="p-3 text-sm font-semibold tracking-wide text-left"> PDF </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> A0 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> A1 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> A2 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> A3 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center text-nowrap"> no DIN </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Kosten </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Status </th>
<th class="w-40 p-3 text-sm font-semibold tracking-wide text-center">Action</th>
<th class="w-1 p-3 text-center"> ID </th>
<th class="w-1 p-3 text-center"> Vorschau </th>
<th class="p-3 text-left"> Auftraggeber </th>
<th class="p-3 text-left"> PDF </th>
<th class="w-1 p-3 text-left"> A0 </th>
<th class="w-1 p-3 text-left"> A1 </th>
<th class="w-1 p-3 text-left"> A2 </th>
<th class="w-1 p-3 text-left"> A3 </th>
<th class="w-1 p-3 text-center text-nowrap"> no DIN </th>
<th class="w-1 p-3 text-center"> Kosten </th>
<th class="w-1 p-3 text-center"> Status </th>
<th class="w-1 p-3 text-center">Action</th>
</tr>
</thead>
<tbody id='printingjobs' class="divide-y divivde-gray-300">
@@ -92,26 +94,26 @@
</table>
</div>
<div id="pickupjobs-h" class="flex items-center justify-between py-4">
<h1 class="text-4xl font-bold text-hsrm-gray">
<h1 class="text-3xl font-bold text-hsrm-gray">
Pickup
</h1>
</div>
<div class="min-w-full overflow-auto shadow-lg">
<table class="w-full py-8 table-auto">
<thead class="bg-gray-200 border-b-2 border-gray-300 text-hsrm-gray">
<thead class="font-semibold tracking-wide bg-gray-200 border-b-2 border-gray-300 text text-hsrm-gray">
<tr>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> ID </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Vorschau </th>
<th class="p-3 text-sm font-semibold tracking-wide text-left"> Auftraggeber </th>
<th class="p-3 text-sm font-semibold tracking-wide text-left"> PDF </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A0 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A1 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A2 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A3 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center text-nowrap"> no DIN </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Kosten </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Status </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center">Action</th>
<th class="w-1 p-3 text-center"> ID </th>
<th class="w-1 p-3 text-center"> Vorschau </th>
<th class="p-3 text-left"> Auftraggeber </th>
<th class="p-3 text-left"> PDF </th>
<th class="w-1 p-3 text-left"> A0 </th>
<th class="w-1 p-3 text-left"> A1 </th>
<th class="w-1 p-3 text-left"> A2 </th>
<th class="w-1 p-3 text-left"> A3 </th>
<th class="w-1 p-3 text-center text-nowrap"> no DIN </th>
<th class="w-1 p-3 text-center"> Kosten </th>
<th class="w-1 p-3 text-center"> Status </th>
<th class="w-1 p-3 text-center">Action</th>
</tr>
</thead>
<tbody id='pickupjobs' class="divide-y divivde-gray-300">
@@ -121,26 +123,26 @@
</table>
</div>
<div id="openjobs-h" class="flex items-center justify-between py-4">
<h1 class="text-4xl font-bold text-hsrm-gray">
<h1 class="text-3xl font-bold text-hsrm-gray">
Open
</h1>
</div>
<div class="min-w-full overflow-auto shadow-lg">
<table class="w-full py-8 table-auto">
<thead class="bg-gray-200 border-b-2 border-gray-300 text-hsrm-gray">
<thead class="font-semibold tracking-wide bg-gray-200 border-b-2 border-gray-300 text text-hsrm-gray">
<tr>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> ID </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Vorschau </th>
<th class="p-3 text-sm font-semibold tracking-wide text-left"> Auftraggeber </th>
<th class="p-3 text-sm font-semibold tracking-wide text-left"> PDF </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A0 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A1 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A2 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A3 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center text-nowrap"> no DIN </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Kosten </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Status </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center">Action</th>
<th class="w-1 p-3 text-center"> ID </th>
<th class="w-1 p-3 text-center"> Vorschau </th>
<th class="p-3 text-left"> Auftraggeber </th>
<th class="p-3 text-left"> PDF </th>
<th class="w-1 p-3 text-left"> A0 </th>
<th class="w-1 p-3 text-left"> A1 </th>
<th class="w-1 p-3 text-left"> A2 </th>
<th class="w-1 p-3 text-left"> A3 </th>
<th class="w-1 p-3 text-center text-nowrap"> no DIN </th>
<th class="w-1 p-3 text-center"> Kosten </th>
<th class="w-1 p-3 text-center"> Status </th>
<th class="w-1 p-3 text-center">Action</th>
</tr>
</thead>
<tbody id='openjobs' class="divide-y divivde-gray-300">
@@ -150,26 +152,26 @@
</table>
</div>
<div id="paidcanceledjobs-h" class="flex items-center justify-between py-4">
<h1 class="text-4xl font-bold text-hsrm-gray">
<h1 class="text-3xl font-bold text-hsrm-gray">
Paid/Canceled
</h1>
</div>
<div class="min-w-full overflow-auto shadow-lg">
<table class="w-full py-8 table-auto">
<thead class="bg-gray-200 border-b-2 border-gray-300 text-hsrm-gray">
<thead class="font-semibold tracking-wide bg-gray-200 border-b-2 border-gray-300 text text-hsrm-gray">
<tr>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> ID </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Vorschau </th>
<th class="p-3 text-sm font-semibold tracking-wide text-left"> Auftraggeber </th>
<th class="p-3 text-sm font-semibold tracking-wide text-left"> PDF </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A0 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A1 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A2 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-left"> A3 </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center text-nowrap"> no DIN </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Kosten </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"> Status </th>
<th class="w-1 p-3 text-sm font-semibold tracking-wide text-center"></th>
<th class="w-1 p-3 text-center"> ID </th>
<th class="w-1 p-3 text-center"> Vorschau </th>
<th class="p-3 text-left"> Auftraggeber </th>
<th class="p-3 text-left"> PDF </th>
<th class="w-1 p-3 text-left"> A0 </th>
<th class="w-1 p-3 text-left"> A1 </th>
<th class="w-1 p-3 text-left"> A2 </th>
<th class="w-1 p-3 text-left"> A3 </th>
<th class="w-1 p-3 text-center text-nowrap"> no DIN </th>
<th class="w-1 p-3 text-center"> Kosten </th>
<th class="w-1 p-3 text-center"> Status </th>
<th class="w-1 p-3 text-center">Action</th>
</tr>
</thead>
<tbody id='paidcanceledjobs' class="divide-y divivde-gray-300">