diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 28a1d23d..b4eae256 100755 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -37,6 +37,28 @@ //= require select2 //= require custom.js +$(document).on('turbolinks:load', function() { + + $('.datetimepicker').bootstrapMaterialDatePicker({ + format: 'DD-MM YYYY - HH:mm', + clearButton: true, + weekStart: 1 + }); + + $('.datepicker').bootstrapMaterialDatePicker({ + format: 'DD-MM-YYYY', + clearButton: true, + weekStart: 1, + time: false + }); + + $('.timepicker').bootstrapMaterialDatePicker({ + format: 'HH:mm', + clearButton: true, + date: false + }); + +}); $(function(){ // Image Upload diff --git a/app/assets/stylesheets/reset.css b/app/assets/stylesheets/reset.css index 5aa94bb9..e79eb0b2 100644 --- a/app/assets/stylesheets/reset.css +++ b/app/assets/stylesheets/reset.css @@ -194,5 +194,9 @@ section.content { padding: 5px 13px; } +.dtp .dtp-buttons .dtp-btn-clear ,.dtp-btn-now ,.dtp-btn-ok ,.dtp-btn-cancel { + background-color: #007d72 !important; +} + /* End Reset Theme */ /* *************************************************** */ \ No newline at end of file diff --git a/app/views/settings/commissioners/_form.html.erb b/app/views/settings/commissioners/_form.html.erb index 28ce6fe9..4ff75432 100755 --- a/app/views/settings/commissioners/_form.html.erb +++ b/app/views/settings/commissioners/_form.html.erb @@ -37,7 +37,7 @@ - + --> diff --git a/app/views/settings/commissioners/edit.html.erb b/app/views/settings/commissioners/edit.html.erb index b5da1ebe..5a8701a5 100755 --- a/app/views/settings/commissioners/edit.html.erb +++ b/app/views/settings/commissioners/edit.html.erb @@ -1,14 +1,4 @@ - +
| Product Name | +Product Name | <%= @commission.menu_item.name rescue '-' %> |
|---|---|---|
| Amount | +Amount | <%= @commission.amount %> |
| Commission Type | +Commission Type | <%= @commission.commission_type %> |
| Active | +Active | <%= @commission.is_active %> |
| Name | -Role | -Created At | + +
|---|
| Name | +<%= @employee.name %> | +||
|---|---|---|---|
| Role | +<%= @employee.role %> | +||
| Created At | +<%= @employee.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %> | +||
| Updated At | -Actions | -||
| <%= @employee.name %> | -<%= @employee.role %> | -<%= @employee.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %> | <%= @employee.updated_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %> | +
- <%= link_to t("views.btn.edit"), edit_settings_employee_path(@employee),:class => 'btn btn-primary btn-lg waves-effect' %>
- <%if @employee.role != "administrator"%>
+ <%= link_to t("views.btn.edit"), edit_settings_employee_path(@employee),:class => 'btn btn-primary btn-lg waves-effect' %>
+ <%if @employee.role != "administrator"%>
-
+
-
- Are you sure you want to delete this row ?-This action can't be undo.- - <%end%> + +Are you sure you want to delete this row ?+This action can't be undo.+ + <%end%> |
| Name: | +<%= @settings_item_set.name %> | +
| Alt Name: | +<%= @settings_item_set.alt_name %> | +
| Min selectable qty: | +<%= @settings_item_set.min_selectable_qty %> | +
| Max selectable qty: | +<%= @settings_item_set.max_selectable_qty %> | +
| + | <%= link_to t("views.btn.edit"), edit_settings_item_set_path(@settings_item_set),:class=>'btn btn-sm btn-primary waves-effect' %> + + - |
| Name: | -<%= @settings_item_set.name %> | -
| Alt Name: | -<%= @settings_item_set.alt_name %> | -
| Min selectable qty: | -<%= @settings_item_set.min_selectable_qty %> | -
| Max selectable qty: | -<%= @settings_item_set.max_selectable_qty %> | -
| Payment method: | @@ -61,6 +61,15 @@
| Promotion code | <%= @promotion.promo_code %> |
| Promotion Start Date | <%= @promotion.promo_start_date %> |
| <%= link_to t("views.btn.edit"), edit_settings_promotion_path(@promotion) %> | <%= link_to t("views.btn.delete"), settings_promotion_path(@promotion), method: :delete, data: { confirm: 'Are you sure?' } %> |