Sha256: 99c769a7adf271772920d20a14d84841c6d5b510474c6eec06aeb2b1d7936701

Contents?: true

Size: 1.77 KB

Versions: 29

Compression:

Stored size: 1.77 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("Dhatu::Price").published.select("id, name").order("priority ASC, 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

29 entries across 29 versions & 1 rubygems

Version Path
dhatu-0.3.9.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.8.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.7.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.6.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.5.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.4.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.3.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.2.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.1.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.3.0.pre.materialize app/views/dhatu/prices/_form.html.erb
dhatu-0.2.3 app/views/dhatu/prices/_form.html.erb
dhatu-0.2.2 app/views/dhatu/prices/_form.html.erb
dhatu-0.2.1 app/views/dhatu/prices/_form.html.erb
dhatu-0.2.0 app/views/dhatu/prices/_form.html.erb
dhatu-0.1.25 app/views/dhatu/prices/_form.html.erb
dhatu-0.1.24 app/views/dhatu/prices/_form.html.erb
dhatu-0.1.23 app/views/dhatu/prices/_form.html.erb
dhatu-0.1.22 app/views/dhatu/prices/_form.html.erb
dhatu-0.1.21 app/views/dhatu/prices/_form.html.erb
dhatu-0.1.20 app/views/dhatu/prices/_form.html.erb