Add requeue action for printer jobs

This commit is contained in:
Patrick Gansterer 2020-08-12 20:05:57 +02:00
parent 3a25a50d8d
commit 754099999e
5 changed files with 15 additions and 1 deletions

View file

@ -11,6 +11,7 @@
%th= heading_helper(PrinterJob, :document)
%th= heading_helper(PrinterJob, :last_update_state)
%th= heading_helper(PrinterJob, :finished_at)
%th
%tbody
- @finished_jobs.each do |j|
%tr
@ -20,3 +21,4 @@
%td= link_to j.document, document_printer_job_path(j)
%td= j.last_update_state
%td= format_time j.finished_at
%td= link_to t('.requeue'), requeue_printer_job_path(j), method: :post, class: 'btn btn-mini'