add item set and menu item set CRUD

This commit is contained in:
Aung Myo
2017-08-14 17:57:55 +06:30
parent edb4ab0425
commit 997cc0733c
32 changed files with 563 additions and 57 deletions

View File

@@ -1,13 +1,13 @@
<%= simple_form_for(@settings_item_set) do |f| %>
<%= simple_form_for([:settings,@settings_item_set]) do |f| %>
<%= f.error_notification %>
<div class="form-inputs">
<%= f.input :name %>
<%= f.input :min_selectable_qty %>
<%= f.input :max_selectable_qty %>
<%= f.input :min_selectable_qty,input_html: {value: f.object.min_selectable_qty || '0'} %>
<%= f.input :max_selectable_qty,input_html: {value: f.object.max_selectable_qty || '0'} %>
</div>
<div class="form-actions">
<%= f.button :submit %>
<%= f.button :submit ,:class=>'btn btn-success'%>
</div>
<% end %>