From 5e658505d33c6b0dd1473c0dff99d49e6eb172a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Thu, 1 Aug 2024 07:27:12 +0200 Subject: [PATCH] Small layout changes --- app/views/jobs/_job_tr.html.erb | 26 +++++++++++------------ app/views/jobs/index.html.erb | 29 ++++++++++++-------------- app/views/layouts/application.html.erb | 2 +- config/tailwind.config.js | 2 ++ 4 files changed, 29 insertions(+), 30 deletions(-) diff --git a/app/views/jobs/_job_tr.html.erb b/app/views/jobs/_job_tr.html.erb index 86fcffb..a0fad74 100644 --- a/app/views/jobs/_job_tr.html.erb +++ b/app/views/jobs/_job_tr.html.erb @@ -1,23 +1,23 @@ - <%= job.id %> - <%= job.fullname %> - <%= job.pdf %> - <%= job.number_of_plans_a0 %> - <%= job.number_of_plans_a1 %> - <%= job.number_of_plans_a2 %> - <%= job.number_of_plans_a3 %> - + <%= job.id %> + <%= job.fullname %> + <%= job.pdf %> + <%= 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 %> + <%= job.status %> <% when :printing %> - <%= job.status %> + <%= job.status %> <% when :ready_for_pickup %> - <%= job.status %> + <%= job.status %> <% when :paid %> - <%= job.status %> + <%= job.status %> <% when :cancelled %> - <%= job.status %> + <%= job.status %> <% end %> diff --git a/app/views/jobs/index.html.erb b/app/views/jobs/index.html.erb index 2e7bc91..19dfa26 100644 --- a/app/views/jobs/index.html.erb +++ b/app/views/jobs/index.html.erb @@ -1,32 +1,29 @@
<% if notice.present? %> -

<%= notice %>

+

<%= notice %>

<% end %> - <% content_for :title, "Current Print Jobs" %> -
-

Plottaufträge am <%= Date.today.strftime("%d.%m.%Y") %>

- <%= link_to "Plottauftrag aufgeben", new_job_path, class: "py-3 px-5 bg-hsrm-red drop-shadow-lg transition-colors duration-100 hover:bg-hsrm-red-light text-white block font-medium" %> +

Plottaufträge am <%= Date.today.strftime("%d.%m.%Y") %>

+ <%= link_to "Plottauftrag aufgeben", new_job_path, class: "px-3 py-2 bg-hsrm-red drop-shadow-lg transition-colors duration-100 hover:bg-hsrm-red-light text-white block font-medium" %>
-
- - +
+ - + - - - - - + + + + + - <%= render partial: "job_tr", collection: @jobs, as: :job %> - <%#= link_to "Show this job", job, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %> + <%= render partial: "job_tr", collection: @jobs, as: :job %> + <%#= link_to "Show this job", job, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
ID Name Auftraggeber PDF A0 A1 A2 A3 Status A0 A1 A2 A3 Status
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 2f822d8..b4a3435 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -45,7 +45,7 @@
<%= yield %>
-