Sha256: de0c3b55c23ffe1feb0ed98150c5fc33d8b27a94327bbc2ba04b5fd1d79f3e46

Contents?: true

Size: 1.11 KB

Versions: 31

Compression:

Stored size: 1.11 KB

Contents

<%= form_for(form_object, url: decidim_comments.comments_path(order: order), method: :post, remote: true, html: { id: form_id }) do |form| %>
  <%= form.hidden_field :commentable_gid, id: nil %>
  <%= form.hidden_field :alignment, id: nil, class: "alignment-input" %>
  <%= comment_as_for(form) %>
  <div class="field">
    <label class="show-for-sr" for="<%= add_comment_id %>">
      <%= t("decidim.components.add_comment_form.form.body.label") %>
    </label>
    <div class="hashtags__container">
      <%= form.text_area(
        :body,
        id: add_comment_id,
        rows: 4,
        maxlength: comments_max_length,
        required: true,
        placeholder: t("decidim.components.add_comment_form.form.body.placeholder"),
        label: false,
        data: { remaining_characters: "##{add_comment_id}-remaining-characters", input_emoji: true }
      ) %>
    </div>
    <button type="submit" class="button button--sc" disabled="disabled"><%= t("decidim.components.add_comment_form.form.submit") %></button>
    <span id="<%= add_comment_id %>-remaining-characters" class="remaining-character-count"></span>
  </div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-comments-0.27.9 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.8 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.7 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.6 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.26.10 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.26.9 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.5 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.26.8 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.4 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.3 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.26.7 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.26.5 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.2 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.1 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.26.4 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.0 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.26.3 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.0.rc2 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.27.0.rc1 app/cells/decidim/comments/comment_form/show.erb
decidim-comments-0.26.2 app/cells/decidim/comments/comment_form/show.erb