Sha256: ff604d966ff6b50d7bbf5bb19bc0ddfe23e82b6e3efb2b2cb61ecc209afa3dcd
Contents?: true
Size: 1.94 KB
Versions: 3
Compression:
Stored size: 1.94 KB
Contents
<%= form_remote_tag :url => {:action => "comment", :id => @article}, :position=> :bottom, :update => {:success => 'commentList'}, :loading => "loading()", :complete => "complete(request)", :failure => "failure(request)", :html => {:id=>"commentform",:class=>"commentform"} %> <div class="comment-box"> <div id="errors"></div> <div id="preview" style="display: none"></div> <a name="respond"></a> <table cellpadding="4" cellspacing="0" class="frm-tbl"> <tr> <td><p><label for="comment_author">Your name</label></p></td> <td> <%= text_field "comment", "author", :size => 20 %> <small><%= link_to_function("(leave url/email »)", "Element.toggle('guest_url'); Element.toggle('guest_email')") %></small></td> </tr> <tr id="guest_url" style="display:none;"> <td><p><label for="comment_url">Your blog</label></p></td> <td> <%= text_field "comment", "url" %></td> </tr> <tr id="guest_email" style="display:none;"> <td><p><label for="comment_email">Your email</label></p></td> <td> <%= text_field "comment", "email" %></td> </tr> <tr> <td><p><label for="comment_body">Your message</label></p></td> <td valign="top" colspan="2"> <%= text_area "comment", "body" %> </td> </tr> <tr> <td colspan="2" id="frm-btns"> <span id="comment_loading" style="display:none;"><%= image_tag "spinner.gif" %></span> <a href="#" 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;">Preview comment</a> <input type="submit" name="submit" id="form-submit-button" value="submit" class="button" /> </td> </tr> </table> </div> <%= end_form_tag %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typo-3.99.0 | app/views/articles/_comment_box.rhtml |
typo-3.99.2 | app/views/articles/_comment_box.rhtml |
typo-3.99.1 | app/views/articles/_comment_box.rhtml |