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" %>
-
-
-
+
+
| ID |
- Name |
+ Auftraggeber |
PDF |
- A0 |
- A1 |
- A2 |
- A3 |
- Status |
+ A0 |
+ A1 |
+ A2 |
+ A3 |
+ Status |
- <%= 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" %>
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 %>
-