Sha256: 1e714baf62d3addc405ebe1832ebb2fa577a0360bd7cecc5a8e7c9c8a0991bfa
Contents?: true
Size: 1.75 KB
Versions: 2
Compression:
Stored size: 1.75 KB
Contents
<%= form_for(@price, :url => (@price.new_record? ? dhatu.prices_path : dhatu.price_path), :method => (@price.new_record? ? :post : :put), :remote => true, :html => {:id=>"form_price", :class=>"mb-0 form-horizontal"}) do |f| %> <div id="price_form_error"> <%= @price.errors[:base].to_sentence %> </div> <div class="form-inputs m-15"> <%= theme_form_field(@price, :title, required: true, form_style: "top-bottom", html_options: { placeholder: "", "data-id": @price.id.to_s}) %> <div class="row"> <div class="col-md-6"> <%= theme_form_field(@price, :sub_title, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %> </div> <div class="col-md-6"> <% options = {assoc_collection: Dhatu::Category.filter_by_category_type("Price").published.select("id, name").order("name ASC").all, editable: true, assoc_display_method: :name} %> <%= theme_form_assoc_group(@price, :category_id, label: "Choose Category", form_style: "top-bottom", **options) %> </div> </div> <div class="row"> <div class="col-md-6"> <%= theme_form_field(@price, :price, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %> </div> <div class="col-md-6"> <%= theme_form_field(@price, :priority, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %> </div> </div> </div> <div> <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %> <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeGenericModal();", class: "pull-right btn btn-white" %> </div> <%= clear_tag %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dhatu-0.1.7 | app/views/dhatu/prices/_form.html.erb |
dhatu-0.1.6 | app/views/dhatu/prices/_form.html.erb |