%
btn_tips = l(:label_news_notice)
label_tips = l(:label_course_news)
%>
<% if @project %>
<%= l(:label_news) %>
<%= error_messages_for @news %>
<%= l(:label_news_new)%>
<%= labelled_form_for @news, :url => project_news_index_path(@project),
:html => {:id => 'news-form', :multipart => true} do |f| %>
<%= render :partial => 'news/project_form', :locals => {:f => f, :is_new => true} %>
<% end if @project %>
<% elsif @course %>
<%= label_tips %>
<%= error_messages_for @news %>
<%= l(:bale_news_notice)%>
<%= labelled_form_for @news, :url => course_news_index_path(@course),
:html => {:id => 'news-form', :multipart => true} do |f| %>
<%= render :partial => 'news/course_form', :locals => {:f => f, :is_new => true} %>
<% end if @course %>
<% end %>