Sha256: 8d7e4aef6f8764288dd18854f4d0e39f2d223647e80652ef0a837eb4b066b403

Contents?: true

Size: 1.9 KB

Versions: 9

Compression:

Stored size: 1.9 KB

Contents

<%= form_tag @article.comment_url, id: 'comment_form', remote: true do %>
  <div class="comment-box">
    <div id="errors" style="display: none"></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"><%= t(".your_name")%></label></p></td>
        <td>
          <%= text_field "comment", "author", size: 20 %>
          <small>
            <%= link_to '#', onclick: "$('.optional_field').fadeToggle();return false" do %>
              (<%= t(".leave_url_email") %> &#187;)
            <% end %>
          </small>
        </td>
      </tr>
      <tr class="optional_field" style="display: none">
        <td><p><label for="comment_url"><%= t(".your_blog")%></label></p></td>
        <td> <%= text_field "comment", "url" %></td>
      </tr>
      <tr class="optional_field" style="display: none">
        <td><p><label for="comment_email"><%= t(".your_email")%></label></p></td>
        <td> <%= text_field "comment", "email" %></td>
      </tr>
      <tr>
        <td><p><label for="comment_body"><%= t(".your_message")%></label></p></td>
        <td valign="top" colspan="2">
          <%= text_area "comment", "body" %>
        </td>
      </tr>
      <% if this_blog.use_recaptcha %>
        <tr>
          <td><p>reCaptcha</p></td>
          <td><p><%= recaptcha_tags ajax: true %></p></td>
        </tr>
      <% end %>
      <tr>
        <td colspan="2" id="frm-btns">
          <%= markup_help_popup TextFilter.find_by_name(this_blog.comment_text_filter), t(".comment_markup_help") %>
          <a href="#" onclick="$.post('<%= @article.preview_comment_url %>', $('#comment_form').serialize());return false"><%= t(".preview_comment")%></a>
          <input type="submit" name="submit" id="form-submit-button" value="submit" class="button">
        </td>
      </tr>
    </table>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
publify_core-9.1.0 app/views/articles/_comment_form.html.erb
publify_core-9.0.1 app/views/articles/_comment_form.html.erb
publify_core-9.0.0 app/views/articles/_comment_form.html.erb
publify_core-9.0.0.pre6 app/views/articles/_comment_form.html.erb
publify_core-9.0.0.pre5 app/views/articles/_comment_form.html.erb
publify_core-9.0.0.pre4 app/views/articles/_comment_form.html.erb
publify_core-9.0.0.pre3 app/views/articles/_comment_form.html.erb
publify_core-9.0.0.pre2 app/views/articles/_comment_form.html.erb
publify_core-9.0.0.pre1 app/views/articles/_comment_form.html.erb