Sha256: 0e20fb48e3327a23e9b3e5584d2805743a97c095b1c286eb795ef4b299c47d9b
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
<%= form.text_field :title, :id => (@post.new_record?? 'slugify' : nil) %> <%= form.text_field :slug, :id => 'slug' %> <%= form.text_field :author %> <% if Blog::Tag.categories.present? %> <%= form.simple_field 'Categories' do %> <% Blog::Tag.categories.each do |category| %> <%= hidden_field_tag "post[category_ids][#{category.id}]", 0, :id => nil %> <label> <%= check_box_tag "post[category_ids][#{category.id}]", 1, @post.category_ids[category.id.to_s].to_i == 1, :id => nil %> <%= category.name %> </label> <% end %> <% end %> <% end %> <%= form.text_field :tag_names, :label => link_to('Tags', admin_blog_tags_path) %> <%= form.text_area :excerpt, :class => 'short' %> <%= form.text_area :content, :class => 'rich_text' %> <%= form.text_field :published_at, :class => 'datetime' %> <% if defined?(ComfortableMexicanSofa) %> <% content_for :right_column do %> <%= render :partial => 'cms_admin/files/index' %> <% end %> <%= cms_hook :blog_post, :locals => { :form => form } %> <%= form.simple_field nil, nil, :class => 'submit_element' do %> <%= form.check_box :is_published, :disable_builder => true %> <%= form.label_for :is_published %> <%= form.submit @post.new_record?? 'Create post' : 'Update post', :disable_builder => true %> <% end %> <% else %> <%= form.check_box :is_published %> <%= form.submit @post.new_record?? 'Create post' : 'Update post' %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfy_blog-0.1.8 | app/views/admin/blog/posts/_form.html.erb |
comfy_blog-0.1.7 | app/views/admin/blog/posts/_form.html.erb |