Sha256: f8bcc28d59ce41f14c72ca2eaf58334114272c9b5f1b1a5fca905858f0feb554

Contents?: true

Size: 1.91 KB

Versions: 23

Compression:

Stored size: 1.91 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.make_filter(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

23 entries across 23 versions & 2 rubygems

Version Path
publify_core-9.2.2 app/views/articles/_comment_form.html.erb
publify_core-9.2.1 app/views/articles/_comment_form.html.erb
publify_core-9.2.0 app/views/articles/_comment_form.html.erb