add mm
This commit is contained in:
@@ -12,11 +12,6 @@ class ApplicationController < ActionController::Base
|
||||
#all token authentication must be done here
|
||||
#response format must be set to JSON
|
||||
|
||||
rescue_from CanCan::AccessDenied do |exception|
|
||||
flash[:warning] = exception.message
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
def set_locale
|
||||
I18n.locale = params[:locale] || I18n.default_locale
|
||||
end
|
||||
@@ -72,6 +67,11 @@ class ApplicationController < ActionController::Base
|
||||
@default_config ||= ActiveRecord::Base.connection.instance_variable_get("@config").dup
|
||||
end
|
||||
|
||||
rescue_from CanCan::AccessDenied do |exception|
|
||||
flash[:warning] = exception.message
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
def current_user
|
||||
@current_user ||= Employee.find_by_token_session(session[:session_token]) if session[:session_token]
|
||||
end
|
||||
|
||||
@@ -28,41 +28,41 @@
|
||||
<!-- Menu -->
|
||||
<div class="menu">
|
||||
<ul class="list">
|
||||
<li class="header">MAIN NAVIGATION</li>
|
||||
<li class="header"><%= t :main_navigation %></li>
|
||||
<li class="active">
|
||||
<a href="<%= dashboard_path %>">
|
||||
<i class="material-icons">home</i>
|
||||
<span>Home</span>
|
||||
<span><%= t :dashboard %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= oqs_root_path %>">
|
||||
<i class="material-icons">room_service</i>
|
||||
<span>Order Queue Station</span>
|
||||
<span><%= t :oqs %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= origami_root_path %>">
|
||||
<i class="material-icons">monetization_on</i>
|
||||
<span>Cashier</span>
|
||||
<span><%= t :origami %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= crm_customers_path %>">
|
||||
<i class="material-icons">group</i>
|
||||
<span>CRM</span>
|
||||
<span><%= t :crm %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= inventory_path %>">
|
||||
<i class="material-icons">store</i>
|
||||
<span>Inventory</span>
|
||||
<span><%= t :inventory %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="menu-toggle">
|
||||
<i class="material-icons">widgets</i>
|
||||
<span>Transaction</span>
|
||||
<span><%= t :transactions %></span>
|
||||
</a>
|
||||
<ul class="ml-menu">
|
||||
<li>
|
||||
@@ -79,7 +79,7 @@
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="menu-toggle">
|
||||
<i class="material-icons">assessment</i>
|
||||
<span>Report</span>
|
||||
<span><%= t :reports %></span>
|
||||
</a>
|
||||
<ul class="ml-menu">
|
||||
<li>
|
||||
@@ -108,41 +108,41 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="header">SETTINGS</li>
|
||||
<li class="header"><%= t :settings %></li>
|
||||
<li>
|
||||
<a href="<%= settings_zones_path %>">
|
||||
<i class="material-icons col-red">donut_large</i>
|
||||
<span>Dinings</span>
|
||||
<span><%= t :dinings %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= settings_menus_path %>">
|
||||
<i class="material-icons col-amber">donut_large</i>
|
||||
<span>Menu</span>
|
||||
<span><%= t :menu %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= settings_employees_path %>">
|
||||
<i class="material-icons col-light-blue">donut_large</i>
|
||||
<span>Staffs</span>
|
||||
<span><%= t :staff %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= settings_cashier_terminals_path %>">
|
||||
<i class="material-icons col-green">donut_large</i>
|
||||
<span>Cashiers</span>
|
||||
<span><%= t :cashier + " " + t :terminal %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= print_settings_path %>">
|
||||
<i class="material-icons col-pupple">donut_large</i>
|
||||
<span>Printers</span>
|
||||
<span><%= t :printer %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<%= settings_products_path %>">
|
||||
<i class="material-icons col-brown">donut_large</i>
|
||||
<span>Products</span>
|
||||
<span><%= t :products %></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
<h1><%= t :welcome %></h1>
|
||||
<%= yield %>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
@@ -10,13 +10,15 @@ mm:
|
||||
transactions: "အလုပ်ဲပြီးမြောက်မှု့များ"
|
||||
reports: "အစီရင်ခံစာ"
|
||||
zones: "Zones"
|
||||
dinings: "Dinings"
|
||||
menu: "Menu"
|
||||
cashier: "Cashier"
|
||||
terminal: "Terminal"
|
||||
print: "Print"
|
||||
staff: "Staff"
|
||||
product: "Product"
|
||||
promotion: "Promotion"
|
||||
products: "Products"
|
||||
promotions: "Promotions"
|
||||
printer: "Printer"
|
||||
views:
|
||||
pagination:
|
||||
first: "« ပထမ"
|
||||
|
||||
Reference in New Issue
Block a user