Sha256: 95bafff07ea1b1a7a7f52bb58f68af5eec2ebda1b19181ed266a66c076fe4f61
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 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" } ) %> </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
6 entries across 6 versions & 1 rubygems