2016-06-17 17:18:36 +08:00
|
|
|
<div class="<%= User.current.logged? ? 'orig_reply_box' : 'orig_reply_box2' %> borderBottomNone" id="reply_to_message_<%= reply.id%>">
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= reply.id%>"><%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(User.current), :alt => "用户头像" %></div>
|
|
|
|
<div class="orig_textarea mb10 fl">
|
2016-06-24 17:01:35 +08:00
|
|
|
<div nhname='new_message_<%= reply.id%>'>
|
|
|
|
<% if @type == 'HomeworkCommon' %>
|
2016-06-23 14:47:22 +08:00
|
|
|
<%= form_for('new_form',:url => {:controller => 'words', :action => 'reply_to_homework', :id => reply.id},:method => "post", :remote => true) do |f| %>
|
2016-09-19 17:14:14 +08:00
|
|
|
<input type="hidden" name="hw_status" value=<%=@hw_status %>>
|
2016-06-23 14:47:22 +08:00
|
|
|
<input type="hidden" name="user_activity_id" value=<%=@user_activity_id %>>
|
|
|
|
<input type="hidden" name="reply[subject]" id="reply_subject">
|
|
|
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="reply_message"></textarea>
|
|
|
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
|
|
|
<% end%>
|
|
|
|
<% elsif @type == 'JournalsForMessage' %>
|
2016-07-04 14:14:51 +08:00
|
|
|
<%= form_for('new_form',:url => {:controller => 'words', :action => 'create_reply', :id => reply.id}, :method => "post", :remote => true) do |f|%>
|
2016-06-23 14:47:22 +08:00
|
|
|
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => reply.id %>
|
|
|
|
<%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => reply.user.id %>
|
|
|
|
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => reply.id %>
|
|
|
|
<%= hidden_field_tag 'show_name',params[:show_name],:value =>true %>
|
|
|
|
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>@user_activity_id %>
|
|
|
|
<%= hidden_field_tag 'activity_id',params[:activity_id],:value =>@activity_id %>
|
|
|
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="user_notes"></textarea>
|
|
|
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% end%>
|
2016-07-04 14:14:51 +08:00
|
|
|
<% elsif @type == 'Message' %>
|
|
|
|
<%= form_for('new_form',:url => {:controller => 'messages', :action => 'reply', :id => reply.id, :board_id => reply.board.id}, :method => "post", :remote => true) do |f|%>
|
|
|
|
<%= hidden_field_tag 'is_course', params[:is_course], :value => @is_course %>
|
|
|
|
<%= hidden_field_tag 'is_board', params[:is_board], :value => @is_board %>
|
|
|
|
<%= hidden_field_tag 'parent_id', params[:parent_id], :value => reply.id %>
|
|
|
|
<%= hidden_field_tag 'activity_id',params[:activity_id],:value =>@activity_id %>
|
|
|
|
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>@user_activity_id %>
|
|
|
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="content"></textarea>
|
|
|
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
|
|
|
<% end%>
|
2016-07-13 15:20:39 +08:00
|
|
|
<% elsif @type == 'BlogComment' %>
|
2016-07-26 17:45:59 +08:00
|
|
|
<%= form_for('new_form', :url => {:controller => 'blog_comments',:action => 'reply', :id => reply.id, :blog_id => reply.blog.id, :user_id => @user_id}, :method => "post", :remote => true) do |f| %>
|
2016-07-13 15:20:39 +08:00
|
|
|
<input type="hidden" name="blog_comment[title]" value="RE:<%=(BlogComment.find @activity_id).title %>" id="reply_subject">
|
|
|
|
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>@user_activity_id %>
|
|
|
|
<%= hidden_field_tag 'parent_id', params[:parent_id], :value => reply.id %>
|
2016-07-14 14:44:47 +08:00
|
|
|
<%= hidden_field_tag 'homepage', params[:homepage], :value => @homepage %>
|
2016-07-13 15:20:39 +08:00
|
|
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="blog_comment[content]"></textarea>
|
|
|
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
|
|
|
<% end%>
|
2016-07-14 17:23:48 +08:00
|
|
|
<% elsif @type == 'OrgDocumentComment' %>
|
|
|
|
<%= form_for('new_form', :url => {:controller => 'org_document_comments',:action => 'reply', :id => reply.id}, :method => "post", :remote => true) do |f| %>
|
|
|
|
<input type="hidden" name="org_document_comment[title]" value="RE:<%=(OrgDocumentComment.find @activity_id).title %>" id="reply_subject">
|
|
|
|
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>@user_activity_id %>
|
|
|
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="org_document_comment[content]"></textarea>
|
|
|
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
|
|
|
<% end%>
|
2016-07-20 17:00:18 +08:00
|
|
|
<% elsif @type == 'News' %>
|
|
|
|
<%= form_for('new_form', :url => {:controller => 'comments',:action => 'reply', :id => reply.id}, :method => "post", :remote => true) do |f| %>
|
|
|
|
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>@user_activity_id %>
|
|
|
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="content"></textarea>
|
|
|
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
|
|
|
<% end%>
|
2016-07-21 10:30:48 +08:00
|
|
|
<% elsif @type == 'Issue' %>
|
|
|
|
<%= form_for('new_form',:url => add_reply_issue_path(reply.issue.id),:method => "post", :remote => true) do |f|%>
|
|
|
|
<%= hidden_field_tag 'journal_id',params[:journal_id],:value =>reply.id %>
|
|
|
|
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>@user_activity_id %>
|
|
|
|
<div nhname='toolbar_container_<%= reply.id%>' ></div>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="content"></textarea>
|
|
|
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<p nhname='contentmsg_<%= reply.id%>' class="fl"></p>
|
|
|
|
<% end %>
|
2016-07-25 13:56:26 +08:00
|
|
|
<% elsif @type == 'Syllabus' %>
|
|
|
|
<%= form_for('new_form',:url => {:controller => 'words', :action => 'reply_to_syllabus', :id => reply.id},:method => "post", :remote => true) do |f| %>
|
|
|
|
<input type="hidden" name="reply[subject]" id="reply_subject">
|
|
|
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="reply_message"></textarea>
|
|
|
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
|
|
|
<% end%>
|
2016-07-20 17:00:18 +08:00
|
|
|
<% end %>
|
2016-06-24 17:01:35 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2016-06-17 17:18:36 +08:00
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<%= render :partial => "users/show_unlogged_reply" %>
|
|
|
|
<% end %>
|
2016-05-06 17:36:28 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|