<%= form_for('new_form', :remote => true, :method => :post, :url => {:controller => 'homework_attach', :action => 'addjours', :homework_id => homework_attach.id, :cur_page => cur_page, :cur_type => cur_type, :is_anonymous_comments => @is_anonymous_comments, :is_teacher => @is_teacher }) do |f|%>
<% if @is_anonymous_comments || @is_teacher %> <%= l(:label_work_rating) %>: <%= render :partial => 'show_star',:locals => {start_score:m_score} %> <% end %>
<% 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"%>
<%= l(:label_confirmation) %>
<% else %>
<%= l(:label_user_login_tips) %> <%= link_to l(:label_user_login_new), signin_path %>
<% end %> <% end %>