%= form_for('new_form', :remote => true, :method => :post,
:url => {:controller => 'homework_attach',
:action => 'addjours',
:jour_id => homework_attach.id,
:is_comprehensive_evaluation => is_comprehensive_evaluation,
:cur_page => cur_page,
:cur_type => cur_type,
:sta => sta}) do |f|%>
<% if @is_comprehensive_evaluation == 3 || User.current == homework_attach.user%>
<% else @is_comprehensive_evaluation == 2 %>
<%= l(:label_work_rating) %>:
<%= render :partial => 'show_star',:locals => {start_score:m_score} %>
<% end %>
<%= render :partial => 'words/pre_show', :locals => {:content => @content} %>
<% if User.current.logged? %>
<%= f.text_area 'user_message', :rows => 3, :cols => 65,
:style => "resize: none;", :class => 'noline', :placeholder => l(:text_caracters_maximum,:count=>250),
:maxlength => 250
%>
<%= f.text_field :reference_user_id, :style=>"display:none"%>
<% else %>
<%= l(:label_user_login_tips) %>
<%= link_to l(:label_user_login_new), signin_path %>
<% end %>
<% end %>