Sha256: 740f852a71031f4ab1201f1d49ce8e2b7329b4d36c0474acec38cec5e3f733bb
Contents?: true
Size: 1.84 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typo-3.99.3 | themes/scribbish/views/articles/_comment_form.rhtml |