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>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user