<% add_decidim_page_title(proposal_wizard_step_title(action_name)) %> <% append_stylesheet_pack_tag "decidim_proposals", media: "all" %> <% append_javascript_pack_tag "decidim_proposals" %> <%= render layout: "layouts/decidim/shared/layout_center" do %> <%= render partial: "wizard_header", locals: { callout_help_text_class: "warning" } %>

<%= present(@proposal).title(links: true, html_escape: true) %>

<% unless component_settings.participatory_texts_enabled? %> <%= cell "decidim/coauthorships", @proposal, context_actions: [] %> <% end %>
<%= render_proposal_body(@proposal) %>
<% if component_settings.geocoding_enabled? && has_position?(@proposal) %>
<%= render partial: "decidim/shared/static_map", locals: { icon_name: "proposals", geolocalizable: @proposal } %>
<% end %> <%= cell "decidim/tab_panels", tab_panel_items %> <%= cell "decidim/tags", @proposal %>
<%= link_to destroy_draft_proposal_path(@proposal), method: :delete, class: "button button__sm md:button__lg button__text-secondary", data: { confirm: t("discard_confirmation", scope: "decidim.proposals.proposals.edit_draft") } do %> <%= icon "arrow-left-line" %> <%= t("discard", scope: "decidim.proposals.proposals.edit_draft") %> <% end %> <%= link_to t("modify", scope: "decidim.proposals.proposals.preview"), edit_draft_proposal_path(@proposal), class: "button button__sm md:button__lg button__transparent-secondary md:ml-auto" %> <%= button_to publish_proposal_path(@proposal), method: :post, class: "button button__sm md:button__lg button__secondary w-full md:w-fit" do %> <%= t("publish", scope: "decidim.proposals.proposals.preview") %> <%= icon "arrow-right-line" %> <% end %>
<% end %>