diff --git a/app/assets/javascripts/login.js b/app/assets/javascripts/login.js index f2df2d03..92005cdb 100755 --- a/app/assets/javascripts/login.js +++ b/app/assets/javascripts/login.js @@ -16,4 +16,5 @@ //= require bootstrap/js/popper.min //= require bootstrap/js/bootstrap-material-design.min //= require node-waves/waves.js -//= require BSBMaterial/admin.js \ No newline at end of file +//= require BSBMaterial/admin.js +//= require bootstrap-notify/bootstrap-notify.js \ No newline at end of file diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 7bb2d879..b7bcb027 100755 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -34,4 +34,33 @@ line-height: inherit; padding:5px; } -/*----- Order Processing Items -----*/ \ No newline at end of file +/*----- Order Processing Items -----*/ + + +/* ========== Select Field ========== */ + +/* Remove focus */ +select:focus { + outline: none} + +/* Hide label */ +.custom-selectfield label {display: none;} +/* Use custom arrow */ +.custom-selectfield select {appearance: none} +.custom-selectfield { + position: relative; + &:after { + position: absolute; + top: 1em; + right: 0.5em; + /* Styling the down arrow */ + width: 0; + height: 0; + padding: 0; + content: ''; + border-left: .25em solid transparent; + border-right: .25em solid transparent; + border-top: .375em solid #111; + pointer-events: none; + } +} \ No newline at end of file diff --git a/app/views/inventory/inventory_definitions/_form.html.erb b/app/views/inventory/inventory_definitions/_form.html.erb index 07db604b..cb310a29 100755 --- a/app/views/inventory/inventory_definitions/_form.html.erb +++ b/app/views/inventory/inventory_definitions/_form.html.erb @@ -10,8 +10,9 @@ <% Product.order("name desc").pluck(:name, :item_code).each do |p| %> <% arr.push(p) %> <% end %> -
- +
+
+ +
<% sample = [] %> diff --git a/app/views/layouts/login_dashboard.html.erb b/app/views/layouts/login_dashboard.html.erb index 0338f614..5fcca34b 100755 --- a/app/views/layouts/login_dashboard.html.erb +++ b/app/views/layouts/login_dashboard.html.erb @@ -50,7 +50,7 @@ color = "bg-black" end %> - <% end %> @@ -158,7 +158,7 @@ $(document).ready(function () { // for Notificaiotn message - +console.log("hi"); var placementFrom = $("#noti").attr('data-placement-from'); var placementAlign = $("#noti").attr('data-placement-align'); var animateEnter = $("#noti").attr('data-animate-enter'); diff --git a/app/views/settings/commissioners/_form.html.erb b/app/views/settings/commissioners/_form.html.erb index efdcab31..30be6ae5 100755 --- a/app/views/settings/commissioners/_form.html.erb +++ b/app/views/settings/commissioners/_form.html.erb @@ -8,10 +8,14 @@
<%= f.input :name %> <%= f.label :emp_id, 'Employee' %> - <%= f.collection_select :emp_id, Employee.all.order('name asc'), :id, :name, {prompt: 'Select an Employee'}, {class: "form-control"} %> + + <%= f.collection_select :emp_id, Employee.all.order('name asc'), :id, :name, {prompt: 'Select an Employee'}, {class: "form-control"} %> +
- <%= f.label :commission_id, 'Commission' %>
- <%= f.select :commission_id, Commission.all.map {|l| [l.menu_item.name, l.id]}, {prompt: 'Select a Product'}, {class: 'form-control'} %> + + <%= f.label :commission_id, 'Commission'%> + <%= f.select :commission_id, Commission.all.map {|l| [l.menu_item.name, l.id]}, { :include_blank => 'Choose Commission Product', :selected => ''}, {class: 'form-control'} %> +
<%= f.label :joined_date %>
<%= f.text_field :joined_date, {class: 'form-control datepicker', id: 'joined_date', readonly: true} %>
@@ -51,5 +55,3 @@
- - diff --git a/app/views/settings/promotions/_form.html.erb b/app/views/settings/promotions/_form.html.erb index 914c3324..0b333ede 100755 --- a/app/views/settings/promotions/_form.html.erb +++ b/app/views/settings/promotions/_form.html.erb @@ -95,18 +95,18 @@
-
+ -
+ --> + <%= f.input :promo_type, collection: %w{Quantity Net_off Net_price Percentage},:input_html=>{:class => 'col-md-5 form-control select'} ,:label => "Promotion Type", :include_blank => 'Choose Promotion Type', :selected => '' %> +
<% arr = MenuItem.active.order("name desc").pluck(:name,:item_code) %> <% Product.order("name desc").pluck(:name,:item_code).each do |p| %> diff --git a/app/views/settings/tables/show.html.erb b/app/views/settings/tables/show.html.erb index 00edd68d..f3cc176e 100755 --- a/app/views/settings/tables/show.html.erb +++ b/app/views/settings/tables/show.html.erb @@ -59,6 +59,27 @@ + <% @table.dining_charges.each do |dc| %> +
+

Dining Charge

+
+ + + + + + + + + + + + +
Item code :<%= dc.item_code %>Unit price : <%= dc.unit_price %>Charge type : <%= dc.charge_type %><%= link_to 'Edit Charges', edit_settings_zone_table_dining_charge_path(@zone,@settings_table,dc),:class => 'btn bg-deep-purple' %> +
+
+
+ <% end %>