update adminbsb for setting pages
This commit is contained in:
@@ -1,50 +1,74 @@
|
||||
<%= 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="form-actions">
|
||||
<%= f.button :submit, class:'pull-right', label: "Add Menu Items to Queue Station" %>
|
||||
</div>
|
||||
<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| %>
|
||||
<% flag = false %>
|
||||
<% itemsary = JSON.parse(@settings_order_queue_station.processing_items) %>
|
||||
<% itemsary.each do |item_code| %>
|
||||
<% if item_code == item.item_code %>
|
||||
<% flag = true %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if flag == true %>
|
||||
<li><div class="processitems opi_default opi_selected" data-id="<%= item.item_code %>"><%= item.name %></div></li>
|
||||
<% else %>
|
||||
<li><div class="processitems opi_default" data-id="<%= item.item_code %>"><%= item.name %></div></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
|
||||
<%= simple_form_for([:settings,@settings_order_queue_station]) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
<%= f.input :processing_items, as: :hidden %>
|
||||
<!-- <div class="form-actions">
|
||||
<%= f.submit "Update",:class => 'btn btn-primary btn-lg waves-effect' %>
|
||||
</div>
|
||||
-->
|
||||
<div class="card">
|
||||
<div class="header">
|
||||
Select Menu Items
|
||||
</div>
|
||||
<div class="body">
|
||||
<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-primary 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-primary" 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| %>
|
||||
<% flag = false %>
|
||||
<% itemsary = JSON.parse(@settings_order_queue_station.processing_items) %>
|
||||
<% itemsary.each do |item_code| %>
|
||||
<% if item_code == item.item_code %>
|
||||
<% flag = true %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if flag == true %>
|
||||
<li><div class="processitems opi_default opi_selected" data-id="<%= item.item_code %>"><%= item.name %></div></li>
|
||||
<% else %>
|
||||
<li><div class="processitems opi_default" data-id="<%= item.item_code %>"><%= item.name %></div></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.submit "Update",:class => 'btn btn-primary btn-lg waves-effect' %>
|
||||
</div>
|
||||
<br>
|
||||
<% end %>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit, label: "Add Menu Items to Queue Station" %>
|
||||
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
|
||||
<div class="card">
|
||||
<div class="body">
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<th>Cut per item</th>
|
||||
<th>Use alternate name</th>
|
||||
<th>Created by</th>
|
||||
<th colspan="3"></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
<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>
|
||||
<td><%= link_to 'Assign Processing Items', settings_order_queue_station_path(settings_order_queue_station),:class => 'btn btn-success btn-lg waves-effect' %>
|
||||
<%= link_to 'Edit', edit_settings_order_queue_station_path(settings_order_queue_station),:class => 'btn btn-info btn-lg waves-effect' %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<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 class="page-header">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
|
||||
<li class="breadcrumb-item"><a href="<%= settings_order_queue_stations_path %>">Order Queue Stations</a></li>
|
||||
<li class="breadcrumb-item active"><%= @settings_order_queue_station.station_name %></li>
|
||||
<span class="float-right">
|
||||
<%= link_to 'Back', settings_order_queue_stations_path %>
|
||||
</span>
|
||||
</ol>
|
||||
</div>
|
||||
<br>
|
||||
<%= render 'form', settings_order_queue_station: @settings_order_queue_station %>
|
||||
Reference in New Issue
Block a user