Sha256: f109d1a23a62e87dacb3a30eb0246af6c6a55f4043911404d2275e097b86a07e
Contents?: true
Size: 1.73 KB
Versions: 5
Compression:
Stored size: 1.73 KB
Contents
<%= form_for(@blog_post, :url => (@blog_post.new_record? ? dhatu.blog_posts_path : dhatu.blog_post_path), :method => (@blog_post.new_record? ? :post : :put), :remote => true, :html => {:id=>"form_blog_post", :class=>"mb-0 form-horizontal"}) do |f| %> <div id="blog_post_form_error"> <%= @blog_post.errors[:base].to_sentence %> </div> <div class="form-inputs m-15"> <%= theme_form_field(@blog_post, :title, form_style: "top-bottom") %> <%= theme_form_field(@blog_post, :slug, form_style: "top-bottom", html_options: {"data-id": @blog_post.id.to_s}) %> <%= theme_form_field(@blog_post, :meta_description, required: true, html_options: {type: :textarea, class: "form-control", style: "height: 80px;"}, form_style: "top-bottom") %> <%= theme_form_field(@blog_post, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %> <div class="row"> <div class="col-md-4 pr-20"> <%= theme_form_field(@blog_post, :posted_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %> </div> <div class="col-md-4 pl-20"> <%= theme_form_field(@blog_post, :author, required: false, 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: "closeLargeModal();", class: "pull-right btn btn-white" %> </div> <%= clear_tag %> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems