<%= f.label :body %>
<%= f.text_area :body, :class => 'editor' %>
<%= f.label :title %>
<%= f.text_field :title, :class => 'original' %>
<%= f.label :category_id %>
<%= select_tag 'post[category_id]', category_options(post).html_safe %>
<%= render "email_form", :f => f %>
<%= render 'image_form' %>
<%= f.check_box :twitter_notify, :class => 'trigger-optional', :checked => post.new_record? %>
<%= f.label :twitter_notify %>
129
<%= f.text_area :tweet_text, :rows => 5, :cols => 10, :maxlength => 129, :value => '',
:disabled => !post.new_record?, :class => 'small mimic' %>
<%= t('.link_to_tweet') %>
<%= f.check_box :facebook_notify, :class => 'trigger-optional',
:checked => post.new_record? %>
<%= f.label :facebook_notify %>
<%= f.text_area :facebook_text, :rows => 5, :cols => 10, :value => '',
:disabled => !post.new_record?, :class => 'small mimic' %>
<%= t('.link_to_facebook') %>
<%= f.check_box :email_notify, :class => 'trigger-optional', :checked => false %>
<%= f.label :email_notify %>
<% unless user_kinds.empty? %>
<% user_kinds.each do |user_kind|%>
-
<%= check_box_tag "post[intended_for][]", user_kind, nil,
:id => "post_intended_for_#{user_kind}" %>
<%= label_tag "post_intended_for_#{user_kind}", user_kind.titleize %>
<% end %>
<% end %>