|
|
|
@ -36,17 +36,27 @@ function checkMaxLength() {
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<!-- fq -->
|
|
|
|
|
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
|
|
|
|
|
|
|
|
|
|
<h3><%= l(:label_user_response) %></h3>
|
|
|
|
|
<% 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 %>
|
|
|
|
|
<div style="width: 80%; margin-left:10%;">
|
|
|
|
|
<%= form_for('new_form', :method => :post,
|
|
|
|
|
:url => {:controller => 'words', :action => 'leave_project_message'}) do |f|%>
|
|
|
|
|
<%= f.text_area 'project_message', :rows => 3, :cols => 65,
|
|
|
|
|
:placeholder => "#{l(:label_welcome_my_respond)}",
|
|
|
|
|
:style => "resize: none; width: 98%",
|
|
|
|
|
:class => 'noline'%>
|
|
|
|
|
<%= submit_tag l(:button_leave_meassge), :name => nil , :class => "enterprise" , :style => "display: block; float: right; margin-right: 1%; margin-top: 1px;"%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= form_for('new_form', :method => :post,
|
|
|
|
|
:url => {:controller => 'words', :action => 'leave_project_message'}) do |f|%>
|
|
|
|
|
<%= f.text_area 'project_message', :rows => 3, :cols => 65,
|
|
|
|
|
:placeholder => "#{l(:label_welcome_my_respond)}",
|
|
|
|
|
:style => "resize: none; width: 98%",
|
|
|
|
|
:class => 'noline'%>
|
|
|
|
|
<%= submit_tag l(:button_leave_meassge), :name => nil , :class => "enterprise" , :style => "display: block; float: right; margin-right: 1%; margin-top: 1px;"%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
|
<% if @jour.size >0 %>
|
|
|
|
|
<ul class="message-for-user">
|
|
|
|
@ -59,18 +69,22 @@ function checkMaxLength() {
|
|
|
|
|
<span class="font_lighter"> <%= l :label_update_time %>: <%= format_time journal.created_on %></span>
|
|
|
|
|
<% id = 'project_respond_form_'+journal.id.to_s%>
|
|
|
|
|
<span>
|
|
|
|
|
<%= link_to l(:label_projects_feedback_respond),'',
|
|
|
|
|
<% if reply_allow %>
|
|
|
|
|
<%= link_to l(:label_projects_feedback_respond),'#',
|
|
|
|
|
{:focus => 'project_respond',
|
|
|
|
|
:onclick => "toggleAndSettingWordsVal($('##{id}'),
|
|
|
|
|
$('##{id} textarea'),
|
|
|
|
|
'#{l(:label_reply_plural)} #{journal.user.show_name}: ');
|
|
|
|
|
return false;"} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
|
<% if reply_allow %>
|
|
|
|
|
<div id='<%= id %>' class="respond-form">
|
|
|
|
|
<%= render :partial => 'words/new_respond', :locals => {:journal => journal, :m_reply_id => journal} %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
|
<div>
|
|
|
|
|
<%= render :partial => "words/journal_reply", :locals => {:journal => journal } %>
|
|
|
|
|