<%= turbo_stream_from 'operator_jobs' %> <% content_for :title, "Current Print Jobs" %>
<%= link_to "#openjobs-h" do %>

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

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

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

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

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

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

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

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

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

<% end %>

Printing

<% if @openjobs.any? %> <%= button_to icon("printer", class: "text-hsrm-gray size-6 inline drop-shadow hover:text-opacity-75 mr-2", title: "Drucken") + "Start next job (" + @openjobs.count.to_s + ")", operator_job_path(@openjobs.first), params: { :job => { status: :printing} }, 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 %>
<%= render partial: "job_tr", collection: @printingjobs, 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 Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status Action

Pickup

<%= render partial: "job_tr", collection: @pickupjobs, 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 Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status Action

Open

<%= render partial: "job_tr", collection: @openjobs, 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 Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status Action

Paid/Canceled

<%= render partial: "job_tr", collection: @paidcanceledjobs, 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 Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status