descript field for menu item
This commit is contained in:
@@ -141,6 +141,6 @@ class Settings::SetMenuItemsController < ApplicationController
|
||||
|
||||
# Never trust parameters from the scary internet, only allow the white list through.
|
||||
def settings_menu_item_params
|
||||
params.require(:set_menu_item).permit(:item_code, :name, :alt_name, :type, :image_path, :menu_category_id,:account_id , :item_attributes, :item_options, :min_qty, :is_sub_item, :is_available, :created_by, :item_sets, :unit, :taxable)
|
||||
params.require(:set_menu_item).permit(:item_code, :name, :alt_name, :type, :image_path, :menu_category_id,:account_id , :item_attributes, :item_options, :min_qty, :is_sub_item, :is_available, :created_by, :item_sets, :unit, :taxable, :description)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -157,6 +157,6 @@ class Settings::SimpleMenuItemsController < ApplicationController
|
||||
|
||||
# Never trust parameters from the scary internet, only allow the white list through.
|
||||
def settings_menu_item_params
|
||||
params.require(:simple_menu_item).permit(:item_code, :name, :alt_name, :type, :image_path, :menu_category_id, :account_id, :item_attributes, :item_options, :min_qty, :is_sub_item, :is_available, :created_by, :item_sets, :unit, :taxable)
|
||||
params.require(:simple_menu_item).permit(:item_code, :name, :alt_name, :type, :image_path, :menu_category_id, :account_id, :item_attributes, :item_options, :min_qty, :is_sub_item, :is_available, :created_by, :item_sets, :unit, :taxable, :description)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -47,6 +47,10 @@
|
||||
<%= f.input :item_sets, :collection => @item_sets, :input_html => { :multiple => true, :class => "form-control item_sets col-md-9"} %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row p-l-30">
|
||||
<%= f.input :description, as: :text, :input_html => { :cols => 3, :rows => 10,:class => "form-control col-md-10" } %>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 align-right m-l-100 m-t-20 m-b-20">
|
||||
|
||||
@@ -45,6 +45,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row p-l-30">
|
||||
<%= f.input :description, as: :text, :input_html => { :cols => 3, :rows => 10,:class => "form-control col-md-10" } %>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 align-right m-l-100 m-t-20 m-b-20">
|
||||
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect', :style => "width: 200px" %>
|
||||
|
||||
Reference in New Issue
Block a user