
<div class="row">
  <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
    <%= simple_form_for([:settings,@category, @settings_menu_item]) do |f| %>
    <%= f.error_notification %>
      <div class="card">
        <div class="row">
         <div class="col-md-6 panel">
            <div class="form- p-l-20">
              <%= f.input :item_code,: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 :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 :account_id, :label => "Account type", :collection => Account.collection,:input_html => {:class => "col-md-9"}, include_blank: false, include_hidden: false %> 
              
              <%= f.input :is_available,:input_html => {:class => "col-md-9"} %> 

              <%= f.input :taxable,:input_html => {:class => "col-md-9"} %> 

              <%= f.input :is_sub_item,:input_html => {:class => "col-md-9"} %>

              <%= f.input :unit, :collection => Lookup.collection_of("unit") ,:input_html => {:class => "col-md-9"} %>
            </div>
          </div>

          <div class="col-md-6">
            <%= f.input :item_attributes, :collection => @item_attributes, :input_html => { :multiple => true,:class => "form-control item_attributes col-md-9" } %>

            <%= f.input :item_options, :collection => @item_options, :input_html => { :multiple => true,:class => "form-control item_options col-md-9" } %>

            <div class="menu-item-img">
              <% if f.object.image_path? %>
              <p><%= f.object.name %></p>
              <%= image_tag f.object.image_path.url,:input_html => { :class => "col-md-4 img-thumbnail" } %>
              <% else %>
              <p>Menu Item Image</p>
              <%= image_tag "/image/menu_images/default.png",:input_html => { :class => "col-md-4 img-thumbnail" } %>
              <% end %>          
            </div>
            <div class="form-group col-md-10">
              <%= f.file_field :image_path,:input_html => { :class => "col-md-4 img-thumbnail" } %>
            </div>
            <%= f.input :item_sets, :collection => @item_sets, :input_html => { :multiple => true,:class => "form-control item_sets col-md-9" } %>
          </div>
      </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" %>
        </div>
      </div>
      </div>
    <% end %>
  </div>
  <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
    <div class="card">
      <div class="body">
        <h5><i class="material-icons md-18">view_headline <%= t("views.right_panel.header.page_detail") %></i></h5>
        <p>
        1) <%= t("views.right_panel.detail.item_code") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.code_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.simple_menu_item_txt") %><br>
        2) <%= t("views.right_panel.detail.name") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.simple_menu_item_txt") %> <%= t("views.right_panel.detail.name_txt2") %><br>
        3) <%= t("views.right_panel.detail.alt_name") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.alt_name_txt") %><br>
        4) <%= t("views.right_panel.detail.type") %> - <%= t("views.right_panel.detail.type_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.simple_menu_item_txt") %> <br>
        5) <%= t("views.right_panel.detail.min_qty") %> - <%= t("views.right_panel.detail.min_qty_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.simple_menu_item_txt") %><br>
        6) <%= t("views.right_panel.detail.account_type") %> - <%= t("views.right_panel.detail.account_type_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.simple_menu_item_txt") %><br>
        7) <%= t("views.right_panel.detail.is_available") %> - <%= t("views.right_panel.detail.simple_menu_item_txt") %> <%= t("views.right_panel.detail.status_txt") %><br>
        8) <%= t("views.right_panel.detail.is_sub_item") %> - <%= t("views.right_panel.detail.checkbox") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.sub_item_txt") %> <br>
        9) <%= t("views.right_panel.detail.unit") %> - <%= t("views.right_panel.detail.select_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.unit_txt") %> <br>
        10) <%= t("views.right_panel.detail.item_attributes") %> - <%= t("views.right_panel.detail.multi_select_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.item_attributes_txt") %><br>
        11) <%= t("views.right_panel.detail.item_options") %> - <%= t("views.right_panel.detail.multi_select_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.item_options_txt") %><br>
        12) <%= t("views.right_panel.detail.menu_item_image") %> - <%= t("views.right_panel.detail.upload_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.simple_menu_item_txt") %> <%= t("views.right_panel.detail.image_txt") %><br>
        13) <%= t("views.right_panel.detail.item_sets") %> - <%= t("views.right_panel.detail.multi_select_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.item_set_txt") %><br>
        </p>
        <h5><i class="material-icons md-18">list <%= t("views.right_panel.header.button_lists") %></i> </h5>
        <p>
        1) <%= t("views.right_panel.button.submit") %> - <%= t("views.right_panel.detail.submit_btn_txt") %> <%= t("views.right_panel.detail.simple_menu_item_txt") %> <br>
        2) <%= t("views.right_panel.button.pick_image") %> - <%= t("views.right_panel.detail.image_btn_txt") %> <%= t("views.right_panel.detail.image_txt") %> <br>
        3) <%= t("views.right_panel.button.cancel") %> - <%= t("views.right_panel.detail.cancel_btn_txt") %> <%= t("views.right_panel.detail.image_txt") %> <br>
        </p>
        <h5><i class="material-icons md-18">list <%= t("views.right_panel.header.link_lists") %></i> </h5>
        <p>
          1) <%= t("views.right_panel.button.home") %> - <%= t("views.right_panel.detail.home_txt") %> <br>
          2) <%= t("views.right_panel.button.back") %> - <%= t("views.right_panel.detail.back_txt") %> <%= t("views.right_panel.detail.simple_menu_item_txt") %> <br>
        </p>
      </div>
    </div>  
  </div>
</div>

 
