Sha256: d57ab5c7f297dad0cc8d59d4aa2748179480cc5dac41ab0d56c47d7cd8b43003
Contents?: true
Size: 1.59 KB
Versions: 20
Compression:
Stored size: 1.59 KB
Contents
<%= form_for(@page, :url => (@page.new_record? ? dhatu.pages_path : dhatu.page_path), :method => (@page.new_record? ? :post : :put), :remote => true, :html => {:id=>"form_page", :class=>"mb-0 form-horizontal"}) do |f| %> <div id="page_form_error"> <%= @page.errors[:base].to_sentence %> </div> <div class="form-inputs m-15"> <div class="row"> <div class="col-md-6 pr-20"> <%= theme_form_field(@page, :name, form_style: "top-bottom") %> </div> <div class="col-md-6 pl-20"> <%= theme_form_field(@page, :code, form_style: "top-bottom", html_options: {"data-id": @page.id.to_s}) %> </div> </div> <div class="row"> <div class="col-md-6 pr-20"> <% options = {assoc_collection: Feature.published.select("id, name").order("name ASC").all, editable: true, assoc_display_method: :display_name, include_blank: true, required: false} %> <%= theme_form_assoc_group(@page, :feature_id, label: "Select Feature", form_style: "top-bottom", **options) %> </div> <div class="col-md-6 pl-20"> <%= theme_form_field(@page, :priority, form_style: "top-bottom") %> </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 %> </div> <% end %>
Version data entries
20 entries across 20 versions & 1 rubygems