diff --git a/app/views/words/_journal_reply.html.erb b/app/views/words/_journal_reply.html.erb new file mode 100644 index 000000000..9a4e77591 --- /dev/null +++ b/app/views/words/_journal_reply.html.erb @@ -0,0 +1,9 @@ + +<%= form_tag({:controller => 'words', +:action => 'create_reply'}) do %> +<%= text_area_tag 'project_respond', "", :class => 'noline', :style => "resize: none;", :rows => 4, :placeholder => l(:label_projects_feedback_respond_content) %> + +<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %> +<%= submit_tag l(:button_projects_feedback_respond), :name => nil , :class => "bid_btn", :style => "margin-top: 1px;"%> + +<% end %> \ No newline at end of file diff --git a/app/views/words/_message.html.erb b/app/views/words/_message.html.erb index b8bcdde09..40fc71e8c 100644 --- a/app/views/words/_message.html.erb +++ b/app/views/words/_message.html.erb @@ -39,6 +39,9 @@
style="display: none;width: 80%; margin: auto;"> <%= render :partial => 'words/new_respond', :locals => {:journal => journal} %>
+
+ <%= render :partial => "words/journal_reply", :locals => {:journal => journal} %> +
<% end %> <% end %> diff --git a/app/views/words/_new_respond.html.erb b/app/views/words/_new_respond.html.erb index 6ef2c9cb1..30babb3eb 100644 --- a/app/views/words/_new_respond.html.erb +++ b/app/views/words/_new_respond.html.erb @@ -1,8 +1,10 @@ <%= form_tag({:controller => 'words', :action => 'create_reply'}) do %> -<%= text_area_tag 'project_respond', "", :class => 'noline', :required => true, :style => "resize: none;", :rows => 4, :placeholder => l(:label_projects_feedback_respond_content) %> +<%= text_area_tag 'user_notes', "", :class => 'noline', :style => "resize: none;", :rows => 4, :placeholder => l(:label_projects_feedback_respond_content) %> <%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %> +<%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => journal.user.id %> +<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => 1 %> <%= submit_tag l(:button_projects_feedback_respond), :name => nil , :class => "bid_btn", :style => "margin-top: 1px;"%> <% end %> \ No newline at end of file