<% provide :title do %>
  <%= t("admin.header.title") %> - <%= t("admin.menu.legislation") %> - <%= @process.title %> - <%= t("admin.legislation.draft_versions.index.title") %> - <%= @draft_version.title %>
<% end %>

<div class="legislation-draft-versions-edit">
  <div class="small-12 column">
    <%= back_link_to admin_legislation_process_draft_versions_path(@process),
                     t("admin.legislation.draft_versions.edit.back") %>

    <h2><%= @process.title %></h2>

    <%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>

    <div class="small-12 column">
      <h3 class="inline-block"><%= @draft_version.title %></h3>

      <div class="float-right">
        <%= render Admin::ActionComponent.new(
          :destroy,
          @draft_version,
          confirm: true,
          class: "button hollow alert"
        ) %>
      </div>
    </div>

    <%= render Admin::Legislation::DraftVersions::FormComponent.new(
      @draft_version,
      url: admin_legislation_process_draft_version_path(@process, @draft_version)
    ) %>
  </div>
</div>
