ensl.org/app/views/comments/_new.html.erb
Luke Barratt ef83ec88f5 Added form view styling
Improved articles styling
Improved bbcode to html formatting
HTML and CSS refactorings
Moved Extra into concerns
Changed repo URL to read-only for deploys
Fixes quotes in comments
2014-04-12 02:35:42 +01:00

23 lines
638 B
Text

<div id="reply" class="comment-form">
<h5>New comment</h5>
<% if cuser %>
<%= form_for(@comment, remote: true) do |f| %>
<ul>
<% @comment.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
<%= f.hidden_field :commentable_id %>
<%= f.hidden_field :commentable_type %>
<div class="fields">
<%= f.text_area :text, rows: 5 %>
</div>
<div class="controls">
<%= f.submit 'Post Comment' %>
</div>
<% end %>
<% else %>
Please log in or <%= link_to "register", new_user_path %> to post comments.
<% end %>
</div>