Sha256: ef76c854cfae4336707c103fd51d1b893c04b0b8acdf79e145bb677bab7244a6
Contents?: true
Size: 1.79 KB
Versions: 4
Compression:
Stored size: 1.79 KB
Contents
= simple_form_for(post, (EffectivePosts.admin_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: 'The title of your post.' - if Array(EffectivePosts.categories).length > 0 = f.input :category, as: (defined?(EffectiveFormInputs) ? :effective_select : :select), collection: EffectivePosts.categories, include_blank: false - else = f.input :category, as: :hidden, input_html: { value: 'posts' } = render partial: '/effective/posts/additional_fields', locals: { post: post, form: f, f: f } = f.input :draft, hint: 'Save this post as a draft. It will not be accessible on the website.' = f.input :published_at, as: (defined?(EffectiveFormInputs) ? :effective_date_time_picker : :datetime), label: 'Publish date', hint: 'When your post will be displayed on the website.' = f.input :body, as: (defined?(EffectiveFormInputs) ? :effective_ckeditor_text_area : :text), hint: 'The body of your post.', toolbar: 'simple', required: true - if defined?(EffectiveRoles) and f.object.respond_to?(:roles) && EffectivePosts.use_effective_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' .effective-post-actions.pull-right = f.button :submit, 'Save', data: { disable_with: 'Saving...' } - if defined?(EffectiveRegions) = f.button :submit, 'Save and Edit Content', data: { disable_with: 'Saving...' } = f.button :submit, 'Save and Add New', data: { disable_with: 'Saving...' } = f.button :submit, 'Save and Duplicate', data: { disable_with: 'Saving...' } = link_to 'Cancel', effective_posts.admin_posts_path
Version data entries
4 entries across 4 versions & 1 rubygems