<%= form_for('contest_message', :remote => true, :method => :post, :url => {:controller => 'contests', :action => 'create', :id => contest, :sta => sta} ) do |f|%>
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
<% if User.current.logged? %> <%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_my_respond), :style => "resize: none; width: 98%", :class => 'noline', :maxlength => 250 %> <%= f.text_field :reference_user_id, :style=>"display:none"%> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "enterprise" , :style => "display: block; float: right; margin-right: 1%; margin-top: 1px;"%> <% else %>
<%= l(:label_user_login_tips) %> <%= link_to l(:label_user_login_new), signin_path %>
<% end %> <% end %>