0
- =
"New #{@post.category ? Inflector.singularize(@post.category.name) : 'post'}"0
+ =
:new_post_for_category.ll_with_args :category => @post.category ? Inflector.singularize(@post.category.name) : 'post'0
= error_messages_for :post
0
- form_for(:post, :url => user_posts_path, :html => {:class => "MainForm"}) do |f|
0
- unless @post.category || @post.contest
0
%select{:id=>"post_category_id", :name=>"post[category_id]"}
0
-for category in Category.find(:all)
0
%option{:value=>"#{category.id}", :selected => category.eql?(Category.get(:talk)) }= h(category.name)
0
= f.hidden_field :contest_id
0
= f.text_area :raw_post, :style => "width:100%;"
0
- %em (optional keywords describing this post, separated by commas)
0
+ %em="(optional keywords describing this post, separated by commas)".l
0
= text_field_tag 'tag_list', @post.tags.collect{|t| t.name}.join(", "), {:autocomplete => "off", :size => 35}
0
.auto_complete#tag_list_auto_complete
0
= auto_complete_field 'tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [',', ' '] }
0
%a{:href=> "#", :onclick => "$('poll-ui').toggle(); return false;"}
0
- = "#{image_tag 'icons/poll.png', :plugin => 'community_engine' } Add a poll"
0
+ = "#{image_tag 'icons/poll.png', :plugin => 'community_engine' } " + "Add a poll".l
0
#poll-ui{:style => 'display:none'}=render :partial => 'polls/new'
0
= f.select(:published_as, [['Published', 'live'], ['Draft', 'draft']])
0
- = link_to 'cancel and go back to my posts'
, user_posts_path(@user)
0
+ = link_to 'cancel and go back to my posts'
.l, user_posts_path(@user)
0
= observe_field "post_category_id", {:url => {:controller => 'categories', :action => 'show_tips'}, :with => "id", :update => "category_tips", :complete => visual_effect(:highlight, "category_tips", :duration => 0.5)}