Sha256: 78bedbdc7ca5f9c52847f3243bc630a4b12caad0a806e8ab4ec26fa1e78be0a8
Contents?: true
Size: 1.38 KB
Versions: 9
Compression:
Stored size: 1.38 KB
Contents
= simple_form_for(post, (EffectivePosts.simple_form_options || {}).merge(:url => (post.persisted? ? effective_posts.admin_post_path(post.id) : effective_posts.admin_posts_path))) do |f| = f.input :title, :hint => "Give this post a title" - if Array(EffectivePosts.categories).length > 0 = f.input :category, :collection => EffectivePosts.categories, :as => :select, :include_blank => false - else = f.input :category, :as => :hidden, :input_html => {:value => 'posts'} %h4 Publish = f.input :draft, :hint => "Save this post as a draft. It will not be accessible on the website." - if defined?(EffectiveFormInputs) = f.input :published_at, :as => :effective_date_time_picker, :hint => "Set this to a future date to schedule a post to appear in the future." - else = f.input :published_at, :hint => "Set this to a future date to schedule a post to appear in the future." - if defined?(EffectiveRoles) and f.object.respond_to?(:roles) = f.input :roles, :collection => EffectiveRoles.roles_collection(f.object), :as => :check_boxes, :hint => '* leave blank for a regular public post that anyone can view' .form-group .col-xs-12 .form-group .pull-right = f.button :submit, 'Save' - if defined?(EffectiveRegions) = f.button :submit, 'Save and Edit Content' = link_to 'Cancel', effective_posts.admin_posts_path
Version data entries
9 entries across 9 versions & 1 rubygems