Sha256: 17a4d97796655454e6dc311a374912c5ec3acf6e2e581ffc9b7a214dec00deaa
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
<%= form_for([:admin, @category], :html => {:id=>"form_category", :class=>"mb-0 form-horizontal", :role => "form", :method => (@category.new_record? ? :post : :put), :remote=>true}) do |f| %> <div id="category_form_error"> <%= @category.errors[:base].to_sentence %> </div> <div class="form-inputs mb-30 mt-30"> <%= theme_form_field(@category, :name) %> <%= theme_form_field(@category, :one_liner, required: false) %> <%= theme_form_field(@category, :description, required: false, html_options: {type: :textarea}) %> <%= theme_form_field(@category, :priority, required: false, html_options: {type: :number, style: "width:70px;"}) %> <% @category.parent_id = params[:parent_id] if params[:parent_id] categories = Category.select("id, name").order("name ASC").all %> <% options = {assoc_collection: categories, required: false, editable: true, assoc_display_method: :name} %> <%= theme_form_assoc_group(@category, :parent_id, **options) %> </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 ml-10 btn btn-white" %> </div> <%= clear_tag(10) %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dhatu-0.1.3 | app/views/dhatu/categories/_form.html.erb |