Order queue stations
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user