2014-04-03 22:38:18 +08:00
|
|
|
<!-- fq -->
|
2014-11-12 15:09:39 +08:00
|
|
|
<div style="width: 80%; margin-left:10%;">
|
|
|
|
<%= form_for('contest_message',
|
|
|
|
:remote => true, :method => :post,
|
|
|
|
:url => {:controller => 'contests',
|
2014-04-03 22:38:18 +08:00
|
|
|
:action => 'create',
|
|
|
|
:id => contest,
|
|
|
|
:sta => sta}
|
|
|
|
) do |f|%>
|
|
|
|
|
|
|
|
<div id = 'pre_show'> <!--what function?-->
|
|
|
|
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
2014-09-10 11:36:50 +08:00
|
|
|
|
|
|
|
<%= f.text_area 'message',
|
|
|
|
:rows => 3,
|
|
|
|
:cols => 65,
|
|
|
|
:placeholder => l(:label_my_respond),
|
2014-11-12 15:09:39 +08:00
|
|
|
:style => "resize: none; width: 98%",
|
|
|
|
:class => 'noline',
|
|
|
|
:maxlength => 250
|
2014-09-10 11:36:50 +08:00
|
|
|
%>
|
2014-04-03 22:38:18 +08:00
|
|
|
|
2014-11-12 15:09:39 +08:00
|
|
|
<%= 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;"%>
|
2014-04-03 22:38:18 +08:00
|
|
|
<% else %>
|
2014-05-24 09:30:23 +08:00
|
|
|
<div style="font-size: 14px;margin:10px;padding-left: 13px">
|
2014-04-03 22:38:18 +08:00
|
|
|
<%= l(:label_user_login_tips) %>
|
|
|
|
<%= link_to l(:label_user_login_new), signin_path %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2014-11-12 15:09:39 +08:00
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|