remove blank in collection select for menu item and menu item instance
This commit is contained in:
@@ -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 %>
|
||||||
|
|||||||
@@ -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"} %>
|
||||||
|
|
||||||
|
|||||||
@@ -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"} %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user