%= decidim_form_for(@form, url: Decidim::EngineRouter.main_proxy(@post.component).post_path(@post), method: :patch, html: { class: "posts_form new_post" }) do |form| %>
<%#= render partial: "decidim/posts/posts/post_form", locals: { form: form } %>
<%= form.hidden_field :category, id: "post_edit_category" %>
<%= form.label :body do %>
<%= t("decidim.components.posts.newFeed.text") %>
<%= form.text_area :body, rows: 4, 'aria-required': true, label: false %>
<% end %>
<%= render partial: "decidim/posts/posts/attachment.html", locals: { form: form } %>
<%= render partial: "decidim/posts/posts/admin_options.html", locals: { form: form, participatory_space: @post.component.participatory_space } %>
<%= link_to t("decidim.components.posts.newFeed.cancel"), '/', class: "button button__sm button__transparent-secondary" %>
<%= form.submit "#{t("decidim.components.posts.newFeed.action")} #{icon('send-plane-line')}".html_safe, data: { disable: true }, class: "sndBtn button button__sm button__transparent-primary" %>
<% end %>