Sha256: d69692dad6d3926bd7a7b652b6d0bb0d2c84a15656748cb75df0027c123e3590

Contents?: true

Size: 794 Bytes

Versions: 4

Compression:

Stored size: 794 Bytes

Contents

<%= content_for :head do %>
  <script type="text/javascript">
    $(document).ready(function() {
      $('#blog_comment_content').focus();
    })
  </script>
<% end %>  

<div id='form_blocks'>
  <%= form.text_field :name %>
  <%= form.text_field :email %>
  <%= form.text_area :content %>
</div>


<% if defined?(ComfortableMexicanSofa) %>
  <%= form.simple_field nil, nil, :class => 'submit_element' do %>
    <%= form.check_box :is_approved, :disable_builder => true %>
    <%= form.label_for :is_approved, :label => 'Approved' %>
    <%= form.submit @comment.new_record? ? 'Create comment' : 'Update comment', :disable_builder => true %>
  <% end %>
<% else %>
  <%= form.check_box :is_approved %>
  <%= form.submit (@post.new_record? ? 'Create comment' : 'Update comment') %>
<% end %>

  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sofa_blog-0.1.3 app/views/sofa_blog/admin/comments/_form.html.erb
sofa_blog-0.1.2 app/views/sofa_blog/admin/comments/_form.html.erb
sofa_blog-0.1.1 app/views/sofa_blog/admin/comments/_form.html.erb
sofa_blog-0.1.0 app/views/sofa_blog/admin/comments/_form.html.erb