Add a printer job queue via the printer plugin
This commit is contained in:
parent
63e1541aa3
commit
c955a6ee40
24 changed files with 561 additions and 1 deletions
22
plugins/printer/app/views/printer_jobs/_jobs.html.haml
Normal file
22
plugins/printer/app/views/printer_jobs/_jobs.html.haml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
.pull-right
|
||||
- if @finished_jobs.total_pages > 1
|
||||
.btn-group= items_per_page wrap: false
|
||||
= pagination_links_remote @finished_jobs
|
||||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
%th= heading_helper(PrinterJob, :id)
|
||||
%th= heading_helper(PrinterJob, :order)
|
||||
%th= heading_helper(PrinterJob, :pickup)
|
||||
%th= heading_helper(PrinterJob, :document)
|
||||
%th= heading_helper(PrinterJob, :last_update_state)
|
||||
%th= heading_helper(PrinterJob, :finished_at)
|
||||
%tbody
|
||||
- @finished_jobs.each do |j|
|
||||
%tr
|
||||
%td= link_to j.id, j
|
||||
%td= link_to j.order.supplier.name, j.order
|
||||
%td= format_date j.order.pickup
|
||||
%td= link_to j.document, document_printer_job_path(j)
|
||||
%td= j.last_update_state
|
||||
%td= format_time j.finished_at
|
||||
Loading…
Add table
Add a link
Reference in a new issue