remove blank in collection select for menu item and menu item instance

This commit is contained in:
phyusin
2017-11-28 14:57:18 +06:30
parent 606e3392c3
commit f669101d3c
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
<%= f.input :item_instance_name %> <%= f.input :item_instance_name %>
<%= f.input :price %> <%= f.input :price %>
<%= f.input :item_attributes, collection: @item.item_attributes%> <%= f.input :item_attributes, collection: @item.item_attributes, include_blank: false, include_hidden: false%>
<%= f.input :is_on_promotion %> <%= f.input :is_on_promotion %>
<%= f.input :promotion_price %> <%= f.input :promotion_price %>

View File

@@ -10,7 +10,7 @@
<%= f.input :item_code,:input_html => {:class => "col-md-9"} %> <%= f.input :item_code,:input_html => {:class => "col-md-9"} %>
<%= f.input :name,:input_html => {:class => "col-md-9"} %> <%= f.input :name,:input_html => {:class => "col-md-9"} %>
<%= f.input :alt_name,:input_html => {:class => "col-md-9"} %> <%= f.input :alt_name,:input_html => {:class => "col-md-9"} %>
<%= f.input :type, :collection => ["SimpleMenuItem","SetMenuItem"], :input_html => {:class => "col-md-9"},:input_html => {:class => "col-md-9"} %> <%= f.input :type, :collection => ["SimpleMenuItem","SetMenuItem"], :input_html => {:class => "col-md-9"},:input_html => {:class => "col-md-9"}, include_blank: false, include_hidden: false %>
<%= f.input :min_qty,:input_html => {:class => "col-md-9"} %> <%= f.input :min_qty,:input_html => {:class => "col-md-9"} %>
<%= f.input :account_id, :label => "Account type", :collection => Account.collection,:input_html => {:class => "col-md-9"} %> <%= f.input :account_id, :label => "Account type", :collection => Account.collection,:input_html => {:class => "col-md-9"} %>

View File

@@ -10,7 +10,7 @@
<%= f.input :item_code,:input_html => {:class => "col-md-9"} %> <%= f.input :item_code,:input_html => {:class => "col-md-9"} %>
<%= f.input :name,:input_html => {:class => "col-md-9"} %> <%= f.input :name,:input_html => {:class => "col-md-9"} %>
<%= f.input :alt_name,:input_html => {:class => "col-md-9"} %> <%= f.input :alt_name,:input_html => {:class => "col-md-9"} %>
<%= f.input :type, :collection => ["SimpleMenuItem","SetMenuItem"], :input_html => {:class => "col-md-9"} %> <%= f.input :type, :collection => ["SimpleMenuItem","SetMenuItem"], :input_html => {:class => "col-md-9"}, include_blank: false, include_hidden: false %>
<%= f.input :min_qty,:input_html => {:class => "col-md-9"} %> <%= f.input :min_qty,:input_html => {:class => "col-md-9"} %>
<%= f.input :account_id, :label => "Account type", :collection => Account.collection,:input_html => {:class => "col-md-9"} %> <%= f.input :account_id, :label => "Account type", :collection => Account.collection,:input_html => {:class => "col-md-9"} %>