2015-04-07 13:47:39 +08:00
|
|
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
|
|
|
|
<div class="msg_box" id='leave-message'>
|
|
|
|
<%# reply_allow = JournalsForMessage.create_by_user? User.current %>
|
|
|
|
<h4><%= l(:label_leave_message) %></h4>
|
|
|
|
|
|
|
|
<% if !User.current.logged?%>
|
|
|
|
<div style="font-size: 14px;margin:20px;">
|
|
|
|
<%= l(:label_user_login_tips) %>
|
|
|
|
<%= link_to l(:label_user_login_new), signin_path %>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<%= form_for('new_form', :method => :post,
|
|
|
|
:url => {:controller => 'words', :action => 'leave_course_message'},:html => {:id=>'leave_message_form'}) do |f|%>
|
2015-04-16 10:26:03 +08:00
|
|
|
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
|
|
|
|
<%= f.kindeditor 'course_message',:height => '140px;',:editor_id => 'leave_message_editor',:input_html=>{:id => "leave_meassge",:style => "resize: none;",
|
|
|
|
:placeholder => "#{l(:label_welcome_my_respond)}",:maxlength => 250}%>
|
|
|
|
<a href="javascript:void(0)" class="grey_btn fr ml10 mt10">取 消</a>
|
|
|
|
<a href="javascript:void(0)" onclick='leave_message_editor.sync();$("#leave_message_form").submit();' class="blue_btn fr mt10">
|
|
|
|
<%= l(:button_leave_meassge)%>
|
|
|
|
</a>
|
2015-04-07 13:47:39 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="history">
|
|
|
|
<%= render :partial => 'history',:locals => { :contest => @contest, :journals => @jour, :state => false} %>
|
|
|
|
</div>
|
|
|
|
<ul class="wlist">
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
2015-03-24 19:51:03 +08:00
|
|
|
</ul>
|