mobile view
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
<aside id="leftsidebar" class="sidebar">
|
||||
<!-- User Info -->
|
||||
<!-- <div class="user-info">
|
||||
<div class="image">
|
||||
<div class="image">
|
||||
<img src="public/image/user.png" width="48" height="48" alt="User" />
|
||||
</div>
|
||||
<div class="info-container">
|
||||
<div class="name" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
current_login_employee.name
|
||||
current_login_employee.name
|
||||
</div>
|
||||
<div class="email">john.doe@example.com</div>
|
||||
<div class="btn-group user-helper-dropdown">
|
||||
@@ -21,7 +21,7 @@
|
||||
<li role="seperator" class="divider"></li>
|
||||
<li><a href="javascript:void(0);"><i class="material-icons">input</i>Sign Out</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- #User Info -->
|
||||
@@ -42,7 +42,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<% if can? :menage, OrderQueueStation %>
|
||||
<li>
|
||||
<li class="menu-up">
|
||||
<a href="<%= oqs_root_path %>">
|
||||
<i class="material-icons">room_service</i>
|
||||
<span><%= t :oqs %></span>
|
||||
@@ -50,8 +50,8 @@
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :index, :home %>
|
||||
<% if current_login_employee.role != "kitchen" %>
|
||||
<li>
|
||||
<% if current_login_employee.role != "kitchen" %>
|
||||
<li class="menu-up">
|
||||
<a href="<%= origami_dashboard_path %>">
|
||||
<i class="material-icons">monetization_on</i>
|
||||
<span><%= t :origami %></span>
|
||||
@@ -60,27 +60,27 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :menage, Customer %>
|
||||
<li>
|
||||
<li class="menu-up">
|
||||
<a href="javascript:void(0);" class="menu-toggle">
|
||||
<i class="material-icons">widgets</i>
|
||||
<span><%= t :crm %></span>
|
||||
</a>
|
||||
<ul class="ml-menu">
|
||||
|
||||
|
||||
<li>
|
||||
<a href="<%= crm_customers_path %>"><%= t :customer %></a>
|
||||
</li>
|
||||
|
||||
|
||||
<% if can? :menage, DiningQueue %>
|
||||
<li>
|
||||
<a href="<%= crm_dining_queues_path %>"><%= t :queue %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :menage, Inventory %>
|
||||
<li>
|
||||
<li class="menu-up">
|
||||
<a href="<%= inventory_path %>">
|
||||
<i class="material-icons">store</i>
|
||||
<span><%= t :inventory %></span>
|
||||
@@ -88,66 +88,9 @@
|
||||
</li>
|
||||
<%end%>
|
||||
<li class="header"><%= t :backend %></li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="menu-toggle">
|
||||
<i class="material-icons">widgets</i>
|
||||
<span><%= t :transactions %></span>
|
||||
</a>
|
||||
<ul class="ml-menu">
|
||||
<% if can? :menage, Booking %>
|
||||
<li>
|
||||
<a href="<%= transactions_bookings_path %>"><%= t :bookings %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Order %>
|
||||
<li>
|
||||
<a href="<%= transactions_orders_path %>"><%= t :orders %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_sales_path %>"><%= t :sale %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_credit_notes_path %>"><%= (t :credit) %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_shift_sales_path %>"><%= (t :shiftsale) %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Survey %>
|
||||
<li>
|
||||
<a href="<%= transactions_surveys_path %>"><%= t("views.right_panel.detail.survey") %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :manage, OrderReservation %>
|
||||
<% if order_reservation %>
|
||||
<li>
|
||||
<a href="<%= transactions_order_reservations_path %>"><%= t("views.right_panel.detail.order_reservation") %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :manage, Sale %>
|
||||
<% if bank_integration %>
|
||||
<li>
|
||||
<a href="<%= transactions_card_sale_trans_path %>"><%= t :cb_payments %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :manage, Sale %>
|
||||
<% if bank_integration %>
|
||||
<li>
|
||||
<a href="<%= transactions_card_settle_trans_path %>"><%= t :cb_settlement %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% if can? :index, :dailysale %>
|
||||
<% device = request.user_agent %>
|
||||
<% if device.include? 'Mobile' %>
|
||||
<% if can? :index, :dailysale %>
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="menu-toggle">
|
||||
<i class="material-icons">assessment</i>
|
||||
@@ -207,8 +150,193 @@
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
</li>
|
||||
<%end%>
|
||||
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="menu-toggle">
|
||||
<i class="material-icons">widgets</i>
|
||||
<span><%= t :transactions %></span>
|
||||
</a>
|
||||
<ul class="ml-menu">
|
||||
<% if can? :menage, Booking %>
|
||||
<li>
|
||||
<a href="<%= transactions_bookings_path %>"><%= t :bookings %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Order %>
|
||||
<li>
|
||||
<a href="<%= transactions_orders_path %>"><%= t :orders %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_sales_path %>"><%= t :sale %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_credit_notes_path %>"><%= (t :credit) %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_shift_sales_path %>"><%= (t :shiftsale) %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Survey %>
|
||||
<li>
|
||||
<a href="<%= transactions_surveys_path %>"><%= t("views.right_panel.detail.survey") %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :manage, OrderReservation %>
|
||||
<% if order_reservation %>
|
||||
<li>
|
||||
<a href="<%= transactions_order_reservations_path %>"><%= t("views.right_panel.detail.order_reservation") %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :manage, Sale %>
|
||||
<% if bank_integration %>
|
||||
<li>
|
||||
<a href="<%= transactions_card_sale_trans_path %>"><%= t :cb_payments %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :manage, Sale %>
|
||||
<% if bank_integration %>
|
||||
<li>
|
||||
<a href="<%= transactions_card_settle_trans_path %>"><%= t :cb_settlement %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<%else%>
|
||||
<li id="left-menu">
|
||||
<a href="javascript:void(0);" class="menu-toggle">
|
||||
<i class="material-icons">widgets</i>
|
||||
<span><%= t :transactions %></span>
|
||||
</a>
|
||||
<ul class="ml-menu">
|
||||
<% if can? :menage, Booking %>
|
||||
<li>
|
||||
<a href="<%= transactions_bookings_path %>"><%= t :bookings %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Order %>
|
||||
<li>
|
||||
<a href="<%= transactions_orders_path %>"><%= t :orders %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_sales_path %>"><%= t :sale %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_credit_notes_path %>"><%= (t :credit) %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Sale %>
|
||||
<li>
|
||||
<a href="<%= transactions_shift_sales_path %>"><%= (t :shiftsale) %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Survey %>
|
||||
<li>
|
||||
<a href="<%= transactions_surveys_path %>"><%= t("views.right_panel.detail.survey") %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :manage, OrderReservation %>
|
||||
<% if order_reservation %>
|
||||
<li>
|
||||
<a href="<%= transactions_order_reservations_path %>"><%= t("views.right_panel.detail.order_reservation") %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :manage, Sale %>
|
||||
<% if bank_integration %>
|
||||
<li>
|
||||
<a href="<%= transactions_card_sale_trans_path %>"><%= t :cb_payments %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :manage, Sale %>
|
||||
<% if bank_integration %>
|
||||
<li>
|
||||
<a href="<%= transactions_card_settle_trans_path %>"><%= t :cb_settlement %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% if can? :index, :dailysale %>
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="menu-toggle">
|
||||
<i class="material-icons">assessment</i>
|
||||
<span><%= t :reports %></span>
|
||||
</a>
|
||||
<ul class="ml-menu">
|
||||
<li>
|
||||
<a href="<%= reports_dailysale_index_path %>">Daily Sales</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_saleitem_index_path %>">Sale Items</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_product_sale_index_path %>">Product Sale</a>
|
||||
</li>
|
||||
<% if order_reservation %>
|
||||
<li>
|
||||
<a href="<%= reports_order_reservation_index_path %>"><%= t("views.right_panel.detail.order_reservation") %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<li>
|
||||
<a href="<%= reports_receipt_no_index_path %>">Receipt</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_receipt_no_detail_index_path %>">Receipt Detail</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_shiftsale_index_path %>">Shift Sales</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_credit_payment_index_path %>">Credit Sales</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_void_sale_index_path %>">Void Sales</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_waste_and_spoilage_index_path %>">Wastes & Spoilages</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_payment_method_index_path %>">Payment Method</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_commission_index_path %>">Commission</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_induty_index_path %>">Induty</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_stock_check_index_path %>">Stock Check</a>
|
||||
</li>
|
||||
<% if bank_integration %>
|
||||
<li>
|
||||
<a href="<%= reports_card_sale_tran_index_path %>">CB Payments</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= reports_card_settle_tran_index_path %>">CB Settlement</a>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<div id="setting" >
|
||||
<li class="header"><%= t :settings %></li>
|
||||
<% if can? :menage, Zone %>
|
||||
<li>
|
||||
@@ -232,7 +360,7 @@
|
||||
<i class="material-icons col-indigo">donut_large</i>
|
||||
<span><%= t :oqs %></span>
|
||||
</a>
|
||||
</li>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, Employee %>
|
||||
<li>
|
||||
@@ -256,7 +384,7 @@
|
||||
<i class="material-icons col-pupple">donut_large</i>
|
||||
<span><%= t :printer %></span>
|
||||
</a>
|
||||
</li>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can? :menage, TaxProfile %>
|
||||
<li>
|
||||
@@ -312,8 +440,11 @@
|
||||
</a>
|
||||
</li>
|
||||
<% end %>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- #Menu -->
|
||||
<!-- Footer -->
|
||||
<div class="legal">
|
||||
@@ -326,4 +457,4 @@
|
||||
</div>
|
||||
<!-- #Footer -->
|
||||
</aside>
|
||||
<!-- #END# Left Sidebar
|
||||
<!-- #END# Left Sidebar
|
||||
|
||||
Reference in New Issue
Block a user