diff --git a/app/views/jobs/_job_tr.html.erb b/app/views/jobs/_job_tr.html.erb
index 6387733..9b12c84 100644
--- a/app/views/jobs/_job_tr.html.erb
+++ b/app/views/jobs/_job_tr.html.erb
@@ -1,27 +1,18 @@
- | <%= job.id %> |
+
+ <%= job.id %>
+ |
<%= job.fullname %> |
<% if job.pdf.attached? %>
<%= job.pdf.filename %><%=number_to_human_size job.pdf.blob.byte_size%>
<% end %>
|
- <%= job.number_of_plans_a0 %> |
- <%= job.number_of_plans_a1 %> |
- <%= job.number_of_plans_a2 %> |
- <%= job.number_of_plans_a3 %> |
+ <%= job.number_of_plans_a0 %> |
+ <%= job.number_of_plans_a1 %> |
+ <%= job.number_of_plans_a2 %> |
+ <%= job.number_of_plans_a3 %> |
- <% case job.status.to_sym %>
- <% when :open %>
- <%= job.status %>
- <% when :printing %>
- <%= job.status %>
- <% when :ready_for_pickup %>
- <%= job.status %>
- <% when :paid %>
- <%= job.status %>
- <% when :canceled %>
- <%= job.status %>
- <% end %>
+ <%= job.status %>
|
diff --git a/config/tailwind.config.js b/config/tailwind.config.js
index e42b89f..c8f31b7 100644
--- a/config/tailwind.config.js
+++ b/config/tailwind.config.js
@@ -20,9 +20,31 @@ module.exports = {
"hsrm-red-light": "#e20009",
"hsrm-gray": "#3a3a3a",
"hsrm-gray-dark": "#212121",
+ "status-open": "#111827", // gray-900
+ "status-open-light": "#d1d5db", // gray-300
+ "status-printing": "#713f12", // yellow-900
+ "status-printing-light": "#fde047", // yellow-300
+ "status-ready_for_pickup": "#365314", // lime-900
+ "status-ready_for_pickup-light": "#bef264", // lime-300
+ "status-paid": "#14532d", // green-900
+ "status-paid-light": "#86efac", // green-300
+ "status-canceled": "#7f1d1d", // red-900
+ "status-canceled-light": "#fca5a5", // red-300
},
},
},
+ safelist: [
+ "text-status-open",
+ "bg-status-open-light",
+ "text-status-printing",
+ "bg-status-printing-light",
+ "text-status-ready_for_pickup",
+ "bg-status-ready_for_pickup-light",
+ "text-status-paid",
+ "bg-status-paid-light",
+ "text-status-canceled",
+ "bg-status-canceled-light",
+ ],
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),