Sha256: f1b8b061d808716f448cda29542aed26e3722506bba306d30caa10e3030f9668

Contents?: true

Size: 1.49 KB

Versions: 6

Compression:

Stored size: 1.49 KB

Contents

<% form_remote_tag :url      => @article.comment_url,
                    :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    => @article.preview_comment_url) %>
    <%= submit_tag 'Submit', :id => 'form-submit-button',  :onclick => "$('commentform').onsubmit();this.disabled=true;Element.hide('preview');return false;" %>
    <%= image_tag 'theme/spinner.gif', :id => 'comment_loading', :style => 'display:none' %>
  </p>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typo-5.5 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.4.4 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.4.3 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.4.2 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.4.1 themes/dirtylicious/views/articles/_comment_form.html.erb
typo-5.4 themes/dirtylicious/views/articles/_comment_form.html.erb