
<div class="row">
  <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
    <div class="card">
      <div class="body">
        <%= simple_form_for([:settings,@settings_product]) do |f| %>
        <%= f.error_notification %>
        <div class="form-group p-l-15">
          <%= f.input :item_code, :input_html => { :id => 'item_code' } %>
          <%= f.input :name %>
          <%= f.input :alt_name %>
          <%= f.input :unit_price %>
          <%= f.input :description %>
          <%= f.input :information %>
          <%= f.input :taxable %>
        </div>

        <label>Product Image</label>
          <div class="panel padding-10">
            <div class="form-group">
              <div class="menu-item-img">
                <% if f.object.image_path? %>
                  <p><%= f.object.name %></p>
                  <%= image_tag f.object.image_path.url, :class => "img-thumbnail" %>
                <% else %>                
                  <%= image_tag "/image/menu_images/default.png", :class => "img-thumbnail" %>
                <% end %>          
              </div>
              <%= f.file_field :image_path, :class => "img-thumbnail" %>
            </div>
          </div>

        <div class="form-actions p-l-15">
          <%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
        </div>
      <% end %>
      </div>
    </div>
  </div>
 <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
    <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.item_code_txt") %> <%= t("views.right_panel.detail.product_txt") %> <br>
        2) <%= t("views.right_panel.detail.name") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.product_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.unit_price") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.price_txt") %> <br>
        5) <%= t("views.right_panel.detail.description") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.description_txt") %> <br>
        6) <%= t("views.right_panel.detail.information") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.information_txt") %> <br>
        7) <%= t("views.right_panel.detail.taxable") %> - <%= t("views.right_panel.detail.checkbox") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.taxable_txt") %> <br>
        8) <%= t("views.right_panel.detail.product_image") %> - <%= t("views.right_panel.detail.image_btn_txt") %> <%= t("views.right_panel.detail.image_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.product_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>
        </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.product_txt") %> <br>
        </p>
      </div>
    </div>  
  </div>
</div>
 
 
