force encoding for utf8
This commit is contained in:
@@ -16,7 +16,14 @@ div.form-inputs span{
|
||||
<%= f.input :station_name %>
|
||||
<%= f.input :is_active %>
|
||||
<% if(@server_mode != 'cloud') %>
|
||||
<%= f.input :printer_name, :as => :select, :collection => Printer::PrinterWorker.printers, include_blank: false %>
|
||||
<div class="form-group select required order_queue_station_printer_name bmd-form-group is-filled focused">
|
||||
<label class="control-label select required bmd-label-static" for="order_queue_station_printer_name"><abbr title="required">*</abbr> Printer name</label>
|
||||
<select class="form-control select required" name="order_queue_station[printer_name]" id="order_queue_station_printer_name">
|
||||
<% Printer::PrinterWorker.printers.each do |printer| %>
|
||||
<option value="<%= printer.force_encoding("UTF-8") %>"><%= printer.force_encoding("UTF-8") %></option>
|
||||
<% end %>
|
||||
</select>
|
||||
</div>
|
||||
<% else %>
|
||||
<%= f.input :printer_name, :as => :select, :collection => [], include_blank: false %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user