Order queue stations
This commit is contained in:
@@ -13,14 +13,10 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Is active</th>
|
||||
<th>Is currently login</th>
|
||||
<th>Auto print receipt</th>
|
||||
<th>Active</th>
|
||||
<th>Login?</th>
|
||||
<th>Auto print</th>
|
||||
<th>Printer name</th>
|
||||
<th>Header</th>
|
||||
<th>Footer</th>
|
||||
<th>Font</th>
|
||||
<th>Font size</th>
|
||||
<th>Show tax</th>
|
||||
<th>Show cashier</th>
|
||||
<th>Show guest info</th>
|
||||
@@ -36,10 +32,6 @@
|
||||
<td><%= settings_cashier_terminal.is_currently_login %></td>
|
||||
<td><%= settings_cashier_terminal.auto_print_receipt %></td>
|
||||
<td><%= settings_cashier_terminal.printer_name %></td>
|
||||
<td><%= settings_cashier_terminal.header %></td>
|
||||
<td><%= settings_cashier_terminal.footer %></td>
|
||||
<td><%= settings_cashier_terminal.font %></td>
|
||||
<td><%= settings_cashier_terminal.font_size %></td>
|
||||
<td><%= settings_cashier_terminal.show_tax %></td>
|
||||
<td><%= settings_cashier_terminal.show_cashier %></td>
|
||||
<td><%= settings_cashier_terminal.show_guest_info %></td>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<li><a href="<%= %>">Home</a></li>
|
||||
<li>Menu Categories</li>
|
||||
<span style="float: right">
|
||||
<%= link_to t('.new', :default => t("helpers.links.new")),new_settings_menu_category_path,:class => 'btn btn-primary btn-sm' %>
|
||||
<!-- <%= link_to t('.new', :default => t("helpers.links.new")),new_settings_menu_category_path,:class => 'btn btn-primary btn-sm' %> -->
|
||||
</span>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -27,7 +27,7 @@
|
||||
<tbody>
|
||||
<% @settings_menu_categories.each do |settings_menu_category| %>
|
||||
<tr>
|
||||
<td><%= settings_menu_category.menu rescue '' %></td>
|
||||
<td><%= link_to settings_menu_category.menu.name, settings_menu_path(settings_menu_category.menu) %></td>
|
||||
<td><%= link_to settings_menu_category.name, settings_menu_category_path(settings_menu_category) %></td>
|
||||
|
||||
<td><%= settings_menu_category.alt_name rescue ''%></td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= simple_form_for(@settings_menu_item) do |f| %>
|
||||
<%= simple_form_for([:setting, @settings_menu_item]) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
|
||||
19
app/views/settings/order_queue_stations/_form.html.erb
Normal file
19
app/views/settings/order_queue_stations/_form.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<%= simple_form_for([:settings,@settings_order_queue_station]) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
<%= f.input :station_name %>
|
||||
<%= f.input :is_active %>
|
||||
<%= f.input :printer_name %>
|
||||
<%= f.input :font_size %>
|
||||
<%= f.input :print_copy %>
|
||||
<%= f.input :cut_per_item %>
|
||||
<%= f.input :use_alternate_name %>
|
||||
<%= f.input :processing_items, as: :hidden %>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_order_queue_station, :id, :station_name, :is_active, :processing_items, :print_copy, :printer_name, :font_size, :cut_per_item, :use_alternate_name, :created_by, :created_at, :updated_at
|
||||
json.url settings_order_queue_station_url(settings_order_queue_station, format: :json)
|
||||
6
app/views/settings/order_queue_stations/edit.html.erb
Normal file
6
app/views/settings/order_queue_stations/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Order Queue Station</h1>
|
||||
|
||||
<%= render 'form', settings_order_queue_station: @settings_order_queue_station %>
|
||||
|
||||
<%= link_to 'Show', @settings_order_queue_station %> |
|
||||
<%= link_to 'Back', settings_order_queue_stations_path %>
|
||||
46
app/views/settings/order_queue_stations/index.html.erb
Normal file
46
app/views/settings/order_queue_stations/index.html.erb
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
<div class="page-header">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="<%= %>">Home</a></li>
|
||||
<li>Order Queue Stations</li>
|
||||
<span style="float: right">
|
||||
<%= link_to t('.new', :default => t("helpers.links.new")),new_settings_order_queue_station_path,:class => 'btn btn-primary btn-sm' %>
|
||||
</span>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="card">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Station name</th>
|
||||
<th>Is active</th>
|
||||
<th>Print copy</th>
|
||||
<th>Printer name</th>
|
||||
<th>Cut per item</th>
|
||||
<th>Use alternate name</th>
|
||||
<th>Created by</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_order_queue_stations.each do |settings_order_queue_station| %>
|
||||
<tr>
|
||||
<td><%= link_to settings_order_queue_station.station_name, settings_order_queue_station_path(settings_order_queue_station) %></td>
|
||||
<td><%= settings_order_queue_station.is_active %></td>
|
||||
<td><%= settings_order_queue_station.print_copy %></td>
|
||||
<td><%= settings_order_queue_station.printer_name %></td>
|
||||
<td><%= settings_order_queue_station.cut_per_item %></td>
|
||||
<td><%= settings_order_queue_station.use_alternate_name %></td>
|
||||
<td><%= settings_order_queue_station.created_by %></td>
|
||||
<td><%= link_to 'Assign Processing Items', new_settings_order_queue_station_processing_item_path(settings_order_queue_station) %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_order_queue_station_path(settings_order_queue_station) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
json.array! @settings_order_queue_stations, partial: 'settings_order_queue_stations/settings_order_queue_station', as: :settings_order_queue_station
|
||||
10
app/views/settings/order_queue_stations/new.html.erb
Normal file
10
app/views/settings/order_queue_stations/new.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="span12">
|
||||
<div class="page-header">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="<%= root_path %>">Home</a></li>
|
||||
<li><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li>
|
||||
<li>New</li>
|
||||
</ul>
|
||||
</div>
|
||||
<%= render 'form', settings_order_queue_station: @settings_order_queue_station %>
|
||||
</div>
|
||||
50
app/views/settings/order_queue_stations/show.html.erb
Normal file
50
app/views/settings/order_queue_stations/show.html.erb
Normal file
@@ -0,0 +1,50 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Station name:</strong>
|
||||
<%= @settings_order_queue_station.station_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Is active:</strong>
|
||||
<%= @settings_order_queue_station.is_active %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Processing items:</strong>
|
||||
<%= @settings_order_queue_station.processing_items %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Print copy:</strong>
|
||||
<%= @settings_order_queue_station.print_copy %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Printer name:</strong>
|
||||
<%= @settings_order_queue_station.printer_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Font size:</strong>
|
||||
<%= @settings_order_queue_station.font_size %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Cut per item:</strong>
|
||||
<%= @settings_order_queue_station.cut_per_item %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Use alternate name:</strong>
|
||||
<%= @settings_order_queue_station.use_alternate_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Created by:</strong>
|
||||
<%= @settings_order_queue_station.created_by %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_order_queue_station_path(@settings_order_queue_station) %> | <%= link_to 'Destroy', settings_order_queue_station_path(@settings_order_queue_station), method: :delete, data: { confirm: 'Are you sure?' } %> |
|
||||
|
||||
<%= link_to 'Back', settings_order_queue_stations_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! "settings_order_queue_stations/settings_order_queue_station", settings_order_queue_station: @settings_order_queue_station
|
||||
35
app/views/settings/processing_items/_form.html.erb
Normal file
35
app/views/settings/processing_items/_form.html.erb
Normal file
@@ -0,0 +1,35 @@
|
||||
<%= simple_form_for([:settings,@settings_order_queue_station]) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
<%= f.input :processing_items, as: :hidden %>
|
||||
<strong>Select Menu Items</strong><br/><br/>
|
||||
<div class="row">
|
||||
<% @menu_categories.each do |category|%>
|
||||
|
||||
<div class="col-lg-3 col-md-3 col-sm-6">
|
||||
<div class="card" style="padding-left:5px">
|
||||
<div class="card-title">
|
||||
<h4><%= category.name %>
|
||||
<br/><br/>
|
||||
|
||||
<button type="button" data-id="menu_items_category_<%= category.id %>" class="btn btn-default processingitems_all" aria-label="Left Align">
|
||||
<i class="fa fa-list" aria-hidden="true"></i>
|
||||
</button>
|
||||
<button type="button" data-id="menu_items_category_<%= category.id %>" class="processingitems_clr btn btn-default" aria-label="Left Align">
|
||||
<i class="fa fa-minus-circle" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
<ul class="opi_ul" id="menu_items_category_<%= category.id %>">
|
||||
<% category.menu_items.each do |item| %>
|
||||
|
||||
<li><div class="processitems opi_default" data-id="<%= item.item_code %>"><%= item.name %></div></li>
|
||||
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit, label: "Add Menu Items to Queue Station" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! settings_order_queue_station, :id, :station_name, :is_active, :processing_items, :print_copy, :printer_name, :font_size, :cut_per_item, :use_alternate_name, :created_by, :created_at, :updated_at
|
||||
json.url settings_order_queue_station_url(settings_order_queue_station, format: :json)
|
||||
6
app/views/settings/processing_items/edit.html.erb
Normal file
6
app/views/settings/processing_items/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Settings Order Queue Station</h1>
|
||||
|
||||
<%= render 'form', settings_order_queue_station: @settings_order_queue_station %>
|
||||
|
||||
<%= link_to 'Show', @settings_order_queue_station %> |
|
||||
<%= link_to 'Back', settings_order_queue_stations_path %>
|
||||
46
app/views/settings/processing_items/index.html.erb
Normal file
46
app/views/settings/processing_items/index.html.erb
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
<div class="page-header">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="<%= %>">Home</a></li>
|
||||
<li>Order Queue Stations</li>
|
||||
<span style="float: right">
|
||||
<%= link_to t('.new', :default => t("helpers.links.new")),new_settings_order_queue_station_path,:class => 'btn btn-primary btn-sm' %>
|
||||
</span>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="card">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Station name</th>
|
||||
<th>Is active</th>
|
||||
<th>Print copy</th>
|
||||
<th>Printer name</th>
|
||||
<th>Cut per item</th>
|
||||
<th>Use alternate name</th>
|
||||
<th>Created by</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_order_queue_stations.each do |settings_order_queue_station| %>
|
||||
<tr>
|
||||
<td><%= link_to settings_order_queue_station.station_name, settings_order_queue_station_path(settings_order_queue_station) %></td>
|
||||
<td><%= settings_order_queue_station.is_active %></td>
|
||||
<td><%= settings_order_queue_station.print_copy %></td>
|
||||
<td><%= settings_order_queue_station.printer_name %></td>
|
||||
<td><%= settings_order_queue_station.cut_per_item %></td>
|
||||
<td><%= settings_order_queue_station.use_alternate_name %></td>
|
||||
<td><%= settings_order_queue_station.created_by %></td>
|
||||
<td><%= link_to 'Assign Processing Items', settings_order_queue_station_path(settings_order_queue_station) %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_order_queue_station_path(settings_order_queue_station) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
1
app/views/settings/processing_items/index.json.jbuilder
Normal file
1
app/views/settings/processing_items/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @settings_order_queue_stations, partial: 'settings_order_queue_stations/settings_order_queue_station', as: :settings_order_queue_station
|
||||
10
app/views/settings/processing_items/new.html.erb
Normal file
10
app/views/settings/processing_items/new.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="span12">
|
||||
<div class="page-header">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="<%= root_path %>">Home</a></li>
|
||||
<li><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li>
|
||||
<li><%= @settings_order_queue_station.station_name %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<%= render 'form', settings_order_queue_station: @settings_order_queue_station %>
|
||||
</div>
|
||||
50
app/views/settings/processing_items/show.html.erb
Normal file
50
app/views/settings/processing_items/show.html.erb
Normal file
@@ -0,0 +1,50 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Station name:</strong>
|
||||
<%= @settings_order_queue_station.station_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Is active:</strong>
|
||||
<%= @settings_order_queue_station.is_active %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Processing items:</strong>
|
||||
<%= @settings_order_queue_station.processing_items %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Print copy:</strong>
|
||||
<%= @settings_order_queue_station.print_copy %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Printer name:</strong>
|
||||
<%= @settings_order_queue_station.printer_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Font size:</strong>
|
||||
<%= @settings_order_queue_station.font_size %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Cut per item:</strong>
|
||||
<%= @settings_order_queue_station.cut_per_item %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Use alternate name:</strong>
|
||||
<%= @settings_order_queue_station.use_alternate_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Created by:</strong>
|
||||
<%= @settings_order_queue_station.created_by %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_settings_order_queue_station_path(@settings_order_queue_station) %> | <%= link_to 'Destroy', settings_order_queue_station_path(@settings_order_queue_station), method: :delete, data: { confirm: 'Are you sure?' } %> |
|
||||
|
||||
<%= link_to 'Back', settings_order_queue_stations_path %>
|
||||
1
app/views/settings/processing_items/show.json.jbuilder
Normal file
1
app/views/settings/processing_items/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "settings_order_queue_stations/settings_order_queue_station", settings_order_queue_station: @settings_order_queue_station
|
||||
Reference in New Issue
Block a user