Add new diary comment template
To be used when create comment action fails.
This commit is contained in:
parent
d80fac7ad9
commit
b69159795b
2 changed files with 14 additions and 0 deletions
12
app/views/diary_comments/new.html.erb
Normal file
12
app/views/diary_comments/new.html.erb
Normal 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 %>
|
|
@ -609,6 +609,8 @@ en:
|
|||
comment: Comment
|
||||
newer_comments: "Newer Comments"
|
||||
older_comments: "Older Comments"
|
||||
new:
|
||||
heading: Add a comment to the following diary entry discussion?
|
||||
doorkeeper:
|
||||
errors:
|
||||
messages:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue