diff --git a/app/views/operator/jobs/_job_tr.html.erb b/app/views/operator/jobs/_job_tr.html.erb index 6846d88..912c09f 100644 --- a/app/views/operator/jobs/_job_tr.html.erb +++ b/app/views/operator/jobs/_job_tr.html.erb @@ -4,7 +4,7 @@ <%= job.id %> - + <% if job.pdf.attached? %> <%= link_to_if job.printing?, image_tag(url_for(job.pdf.preview(resize_to_limit: [100, 100]))), job.pdf, target: "_blank", class: "shadow-lg" %> @@ -27,7 +27,7 @@ <% if job.printing? %>
- + <%= button_to icon("chevron-up", class: "size-5 inline", title: "erhöhen"), increment_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %> <% end %> @@ -35,7 +35,7 @@ <%= job.public_send("number_of_plans_#{din}") if job.respond_to? "number_of_plans_#{din}" %> <% if job.printing? %> - + <%= button_to icon("chevron-down", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
@@ -77,7 +77,7 @@ <% end %> <% if job.pickup? || job.printing? %> <% job.printing? && turbo_confirm = 'Sind die Pläne gedruckt und die Seitenanzahl und QM korrekt?' %> - <%= button_to icon("banknotes", class: "text-status-paid size-6 inline drop-shadow hover:text-opacity-75", title: "Bezahlt"), operator_job_path(job), method: :patch, params: {:job => {status: :paid}}, form: {data: {turbo_confirm: turbo_confirm}}, form_class: "inline" %> + <%= button_to icon("banknotes", class: "text-hsrm-gray size-6 inline drop-shadow hover:text-opacity-75", title: "Bezahlt"), operator_job_path(job), method: :patch, params: {:job => {status: :paid}}, form: {data: {turbo_confirm: turbo_confirm}}, form_class: "inline" %> <% else %> <%= icon("banknotes", class: "text-hsrm-gray text-opacity-25 size-6 inline drop-shadow ", title: "") %> <% end %> diff --git a/app/views/operator/jobs/index.html.erb b/app/views/operator/jobs/index.html.erb index 1a74f1c..76163a4 100644 --- a/app/views/operator/jobs/index.html.erb +++ b/app/views/operator/jobs/index.html.erb @@ -2,54 +2,54 @@ <% content_for :title, "Current Print Jobs" %>
<%= link_to "#openjobs-h" do %> -
+

- <%= icon("inbox-stack", class: "text-status-paid size-10 inline drop-shadow") %> + <%= icon("inbox-stack", class: "text-status-open size-10 inline drop-shadow") %> Open - <%= @openjobs.count %> + <%= @openjobs.count %>

<% end %> <%= link_to "#printingjobs-h" do %> -
+

- <%= icon("printer", class: "text-status-paid size-10 inline drop-shadow") %> + <%= icon("printer", class: "text-status-printing size-10 inline drop-shadow") %> Printing - <%= @printingjobs.count %> + <%= @printingjobs.count %>

<% end %> <%= link_to "#pickupjobs-h" do %> -
+

- <%= icon("arrow-up-tray", class: "text-status-paid size-10 inline drop-shadow") %> + <%= icon("arrow-up-tray", class: "text-status-pickup size-10 inline drop-shadow") %> Pickup - <%= @pickupjobs.count %> + <%= @pickupjobs.count %>

<% end %> <%= link_to "#paidcanceledjobs-h" do %> -
+

<%= icon("banknotes", class: "text-status-paid size-10 inline drop-shadow") %> Paid - <%= @paidjobs.count %> + <%= @paidjobs.count %>

<% end %> <%= link_to "#paidcanceledjobs-h" do %> -
+

- <%= icon("x-circle", class: "text-status-paid size-10 inline drop-shadow") %> + <%= icon("x-circle", class: "text-status-canceled size-10 inline drop-shadow") %> Canceled - <%= @canceledjobs.count %> + <%= @canceledjobs.count %>

<% end %>
-
-

+
+

Printing

<% if @openjobs.any? %> @@ -60,29 +60,29 @@ method: :patch, form_class: "inline px-3 py-2 font-semibold bg-green-500 hover:opacity-90 shadow-lg transition-colors duration-100 bg-opacity-100 flex items-center group text-hsrm-gray" %> <% else %> - + <%= icon("printer", class: "text-hsrm-gray text-opacity-25 size-6 inline drop-shadow mr-2", title: "") %> Start next job <% end %>
<%# render partial: "job_card", collection: @printingjobs, as: :job %> -
+
- + - - + + - - - - - - - - + + + + + + + + @@ -91,27 +91,27 @@
ID Vorschau ID Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status Action A0 A1 A2 A3 no DIN Kosten Status Action
-
-

+
+

Pickup

-
+
- + - - + + - - - - - - - - + + + + + + + + @@ -120,27 +120,27 @@
ID Vorschau ID Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status Action A0 A1 A2 A3 no DIN Kosten Status Action
-
-

+
+

Open

-
+
- + - - + + - - - - - - - - + + + + + + + + @@ -149,27 +149,27 @@
ID Vorschau ID Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status Action A0 A1 A2 A3 no DIN Kosten Status Action
-
-

+
+

Paid/Canceled

-
+
- + - - + + - - - - - - - - + + + + + + + +
ID Vorschau ID Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status A0 A1 A2 A3 no DIN Kosten Status