|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
|
|
|
|
<% tip1 = (@bid.reward_type == 3) ? l(:label_student_response) : l(:label_user_response) %>
|
|
|
|
<% tip1 = (@bid.reward_type == 3) ? l(:label_student_response) : l(:label_user_response) %>
|
|
|
|
<p class="font_lighter" style="font-size: 15px; padding-left: 85px; "><%=tip1%></p>
|
|
|
|
<p class="font_lighter" style="font-size: 15px; padding-left: 85px; "><%=tip1%></p>
|
|
|
|
|
|
|
|
|
|
|
@ -29,11 +30,13 @@
|
|
|
|
<span class="font_lighter"><%= l(:label_bids_published) %> <%= time_tag(journal.created_on).html_safe %> <%= l(:label_bids_published_ago) %></span>
|
|
|
|
<span class="font_lighter"><%= l(:label_bids_published) %> <%= time_tag(journal.created_on).html_safe %> <%= l(:label_bids_published_ago) %></span>
|
|
|
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
|
|
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<% if reply_allow %>
|
|
|
|
<%= link_to(l(:button_quote), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true,
|
|
|
|
<%= link_to(l(:button_quote), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true,
|
|
|
|
:method => 'post', :title => l(:button_quote))%>
|
|
|
|
:method => 'post', :title => l(:button_quote))%>
|
|
|
|
<%= link_to l(:label_bid_respond_quote),'',
|
|
|
|
<%= link_to l(:label_bid_respond_quote),'',
|
|
|
|
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{ids}'), $('##{ids} textarea'), '#{l(:label_reply_plural)} #{journal.user.show_name}: '); $('##{ids} textarea') ;return false;"}
|
|
|
|
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{ids}'), $('##{ids} textarea'), '#{l(:label_reply_plural)} #{journal.user.show_name}: '); $('##{ids} textarea') ;return false;"}
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% if @user==User.current|| User.current.admin? %>
|
|
|
|
<% if @user==User.current|| User.current.admin? %>
|
|
|
|
<%#= link_to(l(:label_bid_respond_delete), {:controller => 'bids', :action => 'destroy', :object_id => journal, :id => bid},:confirm => l(:label_delete_confirm),
|
|
|
|
<%#= link_to(l(:label_bid_respond_delete), {:controller => 'bids', :action => 'destroy', :object_id => journal, :id => bid},:confirm => l(:label_delete_confirm),
|
|
|
|
:remote => true, :method => 'delete', :class => "delete", :confirm => l(:text_are_you_sure), :title => l(:button_delete)) %>
|
|
|
|
:remote => true, :method => 'delete', :class => "delete", :confirm => l(:text_are_you_sure), :title => l(:button_delete)) %>
|
|
|
@ -43,9 +46,11 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
|
|
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
|
|
|
|
|
|
|
<% if reply_allow %>
|
|
|
|
<div id='<%= ids %>' class="respond-form">
|
|
|
|
<div id='<%= ids %>' class="respond-form">
|
|
|
|
<%= render :partial => 'words/new_respond', :locals => {:journal => journal, :m_reply_id => journal} %>
|
|
|
|
<%= render :partial => 'words/new_respond', :locals => {:journal => journal, :m_reply_id => journal} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<%= render :partial => "words/journal_reply", :locals => {:journal => journal } %>
|
|
|
|
<%= render :partial => "words/journal_reply", :locals => {:journal => journal } %>
|
|
|
|