update admin bsb for layout inventory
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
//= require BSBMaterial/admin.js
|
//= require BSBMaterial/admin.js
|
||||||
//= require BSBMaterial/pages/index.js
|
//= require BSBMaterial/pages/index.js
|
||||||
//= require BSBMaterial/demo.js
|
//= require BSBMaterial/demo.js
|
||||||
|
//= require select2
|
||||||
//= require custom.js
|
//= require custom.js
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|||||||
13
app/assets/javascripts/inventory.js
Normal file
13
app/assets/javascripts/inventory.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
//= require jquery
|
||||||
|
//= require tether
|
||||||
|
//= require bootstrap/js/popper.min
|
||||||
|
//= require bootstrap/js/bootstrap-material-design.min
|
||||||
|
//= require jquery_ujs
|
||||||
|
//= require turbolinks
|
||||||
|
//= require jquery-slimscroll/jquery.slimscroll.js
|
||||||
|
//= require node-waves/waves.js
|
||||||
|
//= require sweetalert/sweetalert.min.js
|
||||||
|
//= require BSBMaterial/admin.js
|
||||||
|
//= require BSBMaterial/demo.js
|
||||||
|
//= require custom.js
|
||||||
|
//= require select2
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# Place all the behaviors and hooks related to the matching controller here.
|
|
||||||
# All this logic will automatically be available in application.js.
|
|
||||||
# You can use CoffeeScript in this file: http://coffeescript.org/
|
|
||||||
@@ -1,10 +1,16 @@
|
|||||||
@import "bootstrap";
|
@import "tether";
|
||||||
@import "font-awesome";
|
@import "bootstrap/css/bootstrap-material-design.min";
|
||||||
@import "theme";
|
@import "node-waves/waves";
|
||||||
@import "jquery-ui";
|
@import "animate-css/animate";
|
||||||
@import "bootstrap-datepicker3";
|
@import "sweetalert/sweetalert.css";
|
||||||
|
@import "multi-select/css/multi-select.css";
|
||||||
|
@import "bootstrap-material-datetimepicker/css/bootstrap-material-datetimepicker";
|
||||||
|
@import "morrisjs/morris";
|
||||||
|
@import "BSBMaterial/style";
|
||||||
|
@import "BSBMaterial/themes/all-themes";
|
||||||
|
@import "reset";
|
||||||
@import "select2";
|
@import "select2";
|
||||||
@import "jquery.datetimepicker";
|
|
||||||
|
|
||||||
/* Show it is fixed to the top */
|
/* Show it is fixed to the top */
|
||||||
// body {
|
// body {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class Inventory::InventoryController < ApplicationController#BaseInventoryController
|
class Inventory::InventoryController < BaseInventoryController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@products = InventoryDefinition.all.active.order('created_at desc')
|
@products = InventoryDefinition.all.active.order('created_at desc')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class Inventory::InventoryDefinitionsController < ApplicationController#BaseInventoryController
|
class Inventory::InventoryDefinitionsController < BaseInventoryController
|
||||||
before_action :set_inventory_definition, only: [:show, :edit, :update, :destroy]
|
before_action :set_inventory_definition, only: [:show, :edit, :update, :destroy]
|
||||||
|
|
||||||
# GET /inventory_definitions
|
# GET /inventory_definitions
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class Inventory::StockCheckItemsController < ApplicationController#BaseInventoryController
|
class Inventory::StockCheckItemsController < BaseInventoryController
|
||||||
before_action :set_stock_check_item, only: [:show, :edit, :update, :destroy]
|
before_action :set_stock_check_item, only: [:show, :edit, :update, :destroy]
|
||||||
|
|
||||||
# GET /stock_check_items
|
# GET /stock_check_items
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class Inventory::StockChecksController < ApplicationController#BaseInventoryController
|
class Inventory::StockChecksController < BaseInventoryController
|
||||||
def index
|
def index
|
||||||
@check = StockCheck.new
|
@check = StockCheck.new
|
||||||
@inventory_definitions = InventoryDefinition.active.all
|
@inventory_definitions = InventoryDefinition.active.all
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
|
||||||
|
<div class="p-l-10">
|
||||||
<%= simple_form_for([:inventory, @inventory_definition]) do |f| %>
|
<%= simple_form_for([:inventory, @inventory_definition]) do |f| %>
|
||||||
<%= f.error_notification %>
|
<%= f.error_notification %>
|
||||||
|
|
||||||
@@ -45,11 +48,24 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<%= link_to 'Back', inventory_path, class: 'btn bg-default waves-effect' %>
|
<%= f.submit 'Submit', class: 'btn bg-blue waves-effect' %>
|
||||||
<%= f.button :submit, class: 'btn bg-blue wave' %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<div class="container-fluid">
|
|
||||||
<div class="col">
|
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li><a href="<%= root_path %>">Home</a></li>
|
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
|
||||||
<li><a href="<%= inventory_path %>">Product Inventory</a></li>
|
<li class="breadcrumb-item"><a href="<%= inventory_path %>">Product Inventory</a></li>
|
||||||
<li>New</li>
|
<li class="breadcrumb-item active">Edit</li>
|
||||||
</ul>
|
<span class="float-right">
|
||||||
|
<%= link_to t('.back', :default => t("views.btn.back")), inventory_path %>
|
||||||
|
</span>
|
||||||
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
<br>
|
||||||
<%= render 'form', inventory: @inventory_definition %>
|
<%= render 'form', inventory: @inventory_definition %>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -48,10 +48,18 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="<%= crm_customers_path %>">
|
<a href="javascript:void(0);" class="menu-toggle">
|
||||||
<i class="material-icons">group</i>
|
<i class="material-icons">widgets</i>
|
||||||
<span><%= t :crm %></span>
|
<span><%= t :crm %></span>
|
||||||
</a>
|
</a>
|
||||||
|
<ul class="ml-menu">
|
||||||
|
<li>
|
||||||
|
<a href="<%= crm_customers_path %>"><%= t :customer %></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<%= crm_dining_queues_path %>"><%= t :queue %></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="<%= inventory_path %>">
|
<a href="<%= inventory_path %>">
|
||||||
|
|||||||
@@ -1,23 +1,52 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
|
||||||
<meta charset="utf-8"/>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
|
||||||
<meta name="description" content=""/>
|
|
||||||
<meta name="author" content=""/>
|
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||||
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||||
<title>SmartSales : Restaurant</title>
|
<title>SmartSales : Restaurant</title>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
|
<!-- Favicon-->
|
||||||
|
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||||
|
|
||||||
|
<!-- Google Fonts -->
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
|
||||||
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
<%= stylesheet_link_tag 'inventory_definitions', media: 'all', 'data-turbolinks-track': 'reload' %>
|
<%= stylesheet_link_tag 'inventory_definitions', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||||
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
<%= javascript_include_tag 'inventory', 'data-turbolinks-track': 'reload' %>
|
||||||
<%= stylesheet_link_tag 'jquery-confirm', media: 'all', 'data-turbolinks-track': 'reload' %>
|
|
||||||
<%= javascript_include_tag 'jquery-confirm', 'data-turbolinks-track': 'reload' %>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body class="theme-red">
|
||||||
<%= render 'layouts/header_inventory' %>
|
<!-- Page Loader -->
|
||||||
<div class="container-fluid">
|
<div class="page-loader-wrapper">
|
||||||
|
<div class="loader">
|
||||||
|
<div class="preloader">
|
||||||
|
<div class="spinner-layer pl-blue">
|
||||||
|
<div class="circle-clipper left">
|
||||||
|
<div class="circle"></div>
|
||||||
|
</div>
|
||||||
|
<div class="circle-clipper right">
|
||||||
|
<div class="circle"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p>Please wait...</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- #END# Page Loader -->
|
||||||
|
<!-- Overlay For Sidebars -->
|
||||||
|
<div class="overlay"></div>
|
||||||
|
<!-- #END# Overlay For Sidebars -->
|
||||||
|
<%= render 'layouts/header' %>
|
||||||
|
<section>
|
||||||
|
<%= render 'layouts/left_sidebar' %>
|
||||||
|
<%= render 'layouts/right_sidebar' %>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Main Content -->
|
||||||
|
<section class="content">
|
||||||
<% flash.each do |type, message| %>
|
<% flash.each do |type, message| %>
|
||||||
<% if !flash["errors"]%>
|
<% if !flash["errors"]%>
|
||||||
<div class="alert fade in">
|
<div class="alert fade in">
|
||||||
@@ -28,7 +57,7 @@
|
|||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
</section>
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@@ -48,4 +48,5 @@ Rails.application.config.assets.precompile += %w( popper.min.js )
|
|||||||
|
|
||||||
# --- Inventory Definition ----
|
# --- Inventory Definition ----
|
||||||
Rails.application.config.assets.precompile += %w( inventory_definitions.css )
|
Rails.application.config.assets.precompile += %w( inventory_definitions.css )
|
||||||
|
Rails.application.config.assets.precompile += %w( inventory.js )
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ mm:
|
|||||||
oqs: "အမှာစာနေရာများ"
|
oqs: "အမှာစာနေရာများ"
|
||||||
origami: "အရောင်းကောင်တာ"
|
origami: "အရောင်းကောင်တာ"
|
||||||
crm: "စားသုံးသူကြီးကြပ်ရေး"
|
crm: "စားသုံးသူကြီးကြပ်ရေး"
|
||||||
|
customer: "စားသုံးသူကြီးကြပ်ရေး"
|
||||||
|
queue: "စားသုံးသူကြီးကြပ်ရေး"
|
||||||
inventory: "ကုန်လှောင်ရုံ"
|
inventory: "ကုန်လှောင်ရုံ"
|
||||||
settings: "သတ်မှတ်ချက်များ"
|
settings: "သတ်မှတ်ချက်များ"
|
||||||
transactions: "အလုပ်ပြီးမြောက်မှု့များ"
|
transactions: "အလုပ်ပြီးမြောက်မှု့များ"
|
||||||
|
|||||||
Reference in New Issue
Block a user