%= render layout: "layouts/decidim/shared/layout_center" do %>
<%= render partial: "wizard_header" %>
<%= decidim_form_for(@form, url: update_draft_amend_path(amendment), method: :patch) do |form| %>
<%= render partial: "edit_form_fields", locals: { form:, original: :emendation } %>
<% if current_organization.user_groups_enabled? && current_user.user_groups.verified.any? %>
<%= user_group_select_field form, :user_group_id, label: t("new.amendment_author", scope: "decidim.amendments") %>
<% end %>
<%= link_to wizard_aside_back_url(amendable), class: "button button__sm md:button__lg button__text-secondary" do %>
<%= icon "arrow-left-line" %>
<%= t("back", scope: "decidim.wizard_step_form.wizard_aside") %>
<% end %>
<%= link_to destroy_draft_amend_path(amendment), method: :delete, class: "button button__sm md:button__lg button__transparent-secondary" do %>
<%= t("discard", scope: "decidim.amendments.edit_draft") %>
<% end %>
<% end %>
<% end %>