Sha256: 7ef42000f6a98d8d95e6d5889d9ff11f02513a5f59beb81309b3cd696a4af38b
Contents?: true
Size: 1.84 KB
Versions: 5
Compression:
Stored size: 1.84 KB
Contents
<%= form_remote_tag :url => {:action => 'comment', :id => @article}, :update => 'comments_div', :loading => 'commentLoading()', :complete => 'commentComplete()', :html => {:id => 'commentform', :class => 'comments' } %> <div id="preview" style="display:none"></div> <fieldset> <legend>Comments</legend> <p> <label>Name:<br /> <%= text_field "comment", "author" %> <small>(<%= link_to_function("leave url/email »", "new Effect.toggle('extra_fields', 'blind', {duration: .3})") %>)</small> </label> </p> <div id="extra_fields" style="display:none;"> <p> <label>Email: <%= content_tag('small', "(#{link_to('gravatar', 'http://gravatar.com')} enabled)") if config_value(:use_gravatar) %><br /> <%= text_field "comment", "email" %> </label> </p> <p> <label>Url:<br /> <%= text_field "comment", "url" %> </label> </p> </div> <p> <label> Comments: <%= content_tag('small', link_to("Textile enabled", "http://hobix.com/textile/")) if config_value(:comment_text_filter).include? 'textile' %> <%= content_tag('small', link_to("Markdown enabled", "http://daringfireball.net/projects/markdown/")) if config_value(:comment_text_filter).include? 'markdown' %> <br /> <%= text_area 'comment', 'body' %> </label> </p> <p> <input type="button" value="Preview" onclick="new Ajax.Updater('preview','<%= url_for :action => 'comment_preview' %>',{asynchronous:true,evalScripts:true,parameters:Form.serialize('commentform'),onComplete:function(request){Element.show('preview')}});return false;" /> <%= submit_tag 'Submit' %> <%= image_tag '/images/theme/spinner.gif', :id => 'spinner', :style => 'display:none' %> </p> </fieldset> <%= end_form_tag %>
Version data entries
5 entries across 5 versions & 1 rubygems