add printer lists of system
This commit is contained in:
@@ -24,11 +24,11 @@ class Printer::PrinterWorker
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def printers()
|
def self.printers()
|
||||||
Cups.show_destinations
|
Cups.show_destinations
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_printer()
|
def self.default_printer()
|
||||||
Cups.default_printer
|
Cups.default_printer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<%= f.input :unique_code %>
|
<%= f.input :unique_code %>
|
||||||
<%= f.input :template %>
|
<%= f.input :template %>
|
||||||
<%= f.input :font %>
|
<%= f.input :font %>
|
||||||
<%= f.input :printer_name %>
|
<%= f.input :printer_name, :as => :select, :collection => Printer::PrinterWorker.printers, include_blank: false %>
|
||||||
<%= f.input :api_settings %>
|
<%= f.input :api_settings %>
|
||||||
<%= f.input :page_width %>
|
<%= f.input :page_width %>
|
||||||
<%= f.input :page_height %>
|
<%= f.input :page_height %>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<%= f.input :auto_print_receipt %>
|
<%= f.input :auto_print_receipt %>
|
||||||
<%= f.label "Select Zones", :class => 'control-label' %>
|
<%= f.label "Select Zones", :class => 'control-label' %>
|
||||||
<%= f.collection_check_boxes :zone_ids , Zone.all, :id, :name , :class => 'checkbox form-group'%>
|
<%= f.collection_check_boxes :zone_ids , Zone.all, :id, :name , :class => 'checkbox form-group'%>
|
||||||
<%= f.input :printer_name %>
|
<%= f.input :printer_name, :as => :select, :collection => Printer::PrinterWorker.printers, include_blank: false %>
|
||||||
<%= f.input :font %>
|
<%= f.input :font %>
|
||||||
<%= f.input :font_size %>
|
<%= f.input :font_size %>
|
||||||
<%= f.input :show_tax %>
|
<%= f.input :show_tax %>
|
||||||
|
|||||||
Reference in New Issue
Block a user