Sha256: 653129895ba70812800a311bca4594081ddaa9a71d3be8749deb1bfb128c9842
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
<%= form_for [post, comment], remote: true, html: { class: "new_blog_comment", id: "new_blog_comment" } do |f| -%> <p><%=t :leave_a_comment, scope: 'blogit.comments'%></p> <%= field class: "hidden" do %> <%= f.label :nickname %> <%= f.text_field :nickname %> Hide me using CSS <% end %> <%= field do %> <%= f.label :name, t(:name, scope: 'blogit.comments') %><br> <%= f.text_field :name %> <%= errors_on(comment, :name) %> <% end %> <%= field do %> <%= f.label :email, t(:email_never_displayed, scope: 'blogit.comments') %><br> <%= f.email_field :email %> <%= errors_on(comment, :email) %> <% end %> <%= field do %> <%= f.label :website, t(:your_website, scope: 'blogit.comments') %><br> <%= f.url_field :website %> <%= errors_on(comment, :website) %> <% end %> <%= field do %> <%= f.label :body, t(:your_comment, scope: 'blogit.comments') %><br> <%= f.text_area :body %><br> <%= errors_on(comment, :body) %> <% end %> <%= actions do %> <%= f.submit t(:add_comment, scope: 'blogit.comments'), :disable_with => t(:adding_comment, scope: 'blogit.comments') %> <% end %> <% end -%>
Version data entries
7 entries across 7 versions & 2 rubygems