Add new diary comment template

To be used when create comment action fails.
This commit is contained in:
Anton Khorev 2024-07-12 16:56:36 +03:00
parent d80fac7ad9
commit b69159795b
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<% content_for :heading do %>
<h1><%= t ".heading" %></h1>
<% end %>
<%= render :partial => "diary_entries/diary_entry_heading", :object => @entry, :as => "diary_entry" %>
<h3><%= t "diary_entries.show.leave_a_comment" %></h3>
<%= bootstrap_form_for @diary_comment, :url => comment_diary_entry_path(@entry.user, @entry) do |f| %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :hide_label => true %>
<%= f.primary %>
<% end %>

View file

@ -609,6 +609,8 @@ en:
comment: Comment comment: Comment
newer_comments: "Newer Comments" newer_comments: "Newer Comments"
older_comments: "Older Comments" older_comments: "Older Comments"
new:
heading: Add a comment to the following diary entry discussion?
doorkeeper: doorkeeper:
errors: errors:
messages: messages: