Sha256: 387db18efbff57cc0435a935320b2bfa983eb163de6d6cb3c43f39ffc7540596

Contents?: true

Size: 1.51 KB

Versions: 9

Compression:

Stored size: 1.51 KB

Contents

<% form_remote_tag :url      => comments_path(@article),
                    :position => :bottom,
                    :update   => {:success => 'commentList'},
                    :loading  => "loading()",
                    :complete => "complete(request)",
                    :failure  => "failure(request)",
                    :html     => {:id => 'commentform', :class => 'comments' } \
    do %>

<div id="preview" style="display:none"></div>

  <h2 id="respond">Leave a comment</h2>
  <p>
	 <%= text_field "comment", "author", :class => 'styled', :size => 22 %>
    <label>Name</label>
  </p>
	<p>
		<%= text_field "comment", "email", :class => 'styled', :size => 22 %>
		<label>Email <%= content_tag('small', "(#{link_to('gravatar', 'http://gravatar.com')} enabled)") if this_blog.use_gravatar %></label>
	</p>
	<p>
		<%= text_field "comment", "url", :class => 'styled', :size => 22 %>
		<label>Url</label>
	</p>
  <p>
      <%= text_area 'comment', 'body', :class => 'styled', :rows => 10, :cols => 100 %>
  </p>

  <p>
    <%= submit_to_remote('preview', 'Preview!',
                         :update => 'preview',
                         :complete => "Element.show('preview')",
                         :url    => preview_new_comment_path(@article)) %>
    <%= submit_tag 'Submit', :id => 'form-submit-button',  :onclick => "$('commentform').onsubmit();this.disabled=true;Element.hide('preview');return false;" %>
    <%= image_tag '/images/theme/spinner.gif', :id => 'comment_loading', :style => 'display:none' %>
  </p>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-5.0.2 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.0.1 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.0 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.1.1 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.1.2 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.1.3 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.1.98 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.1 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.2 themes/dirtylicious/views/articles/_comment_form.html.erb