2021-08-02 21:33:51 +08:00
|
|
|
<div class="label-printing-progress-modal" data-label-printer-status="<%= label_printer.printing_status %>" data-label-printer-id="<%= label_printer.id %>" data-starting-item-count="<%= starting_item_count %>">
|
2021-08-02 17:11:11 +08:00
|
|
|
<div class="modal-header">
|
|
|
|
<div class="title">
|
|
|
|
<%= label_printer.name %>
|
|
|
|
</div>
|
|
|
|
<div class="printer-status" data-status="<%= label_printer.status %>">
|
|
|
|
<% if label_printer.ready? %>
|
|
|
|
<%= t('label_printers.modal_printing_status.printer_status.ready') %>
|
|
|
|
<% elsif label_printer.out_of_labels? %>
|
|
|
|
<%= t('label_printers.modal_printing_status.printer_status.out_of_labels') %>
|
2021-08-02 21:33:51 +08:00
|
|
|
<% elsif label_printer.error? %>
|
|
|
|
<%= t('label_printers.modal_printing_status.printer_status.error') %>
|
2021-08-02 17:11:11 +08:00
|
|
|
<% else %>
|
|
|
|
<%= t('label_printers.modal_printing_status.printer_status.not_ready') %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="printing-items">
|
|
|
|
<%= t('label_printers.modal_printing_status.multiple_items', starting_item_count: starting_item_count, item_count: starting_item_count - label_printer.current_print_job_ids.length) %>
|
|
|
|
</div>
|
2021-08-02 21:33:51 +08:00
|
|
|
<div class="printing-status" data-status="<%= label_printer.printing_status %>">
|
|
|
|
<%= t("label_printers.modal_printing_status.printing_status.#{label_printer.printing_status}") %>
|
2021-08-02 17:11:11 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|