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

<div class="legislation-admin legislation-draft-versions-edit legislation-draft-versions-form row">
  <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="row">
      <div class="small-12 column">
        <div class="callout warning" style="display: none;">
          <%= t("admin.legislation.draft_versions.edit.warning") %>
        </div>
      </div>

      <div class="small-12 medium-9 column">
        <h3><%= @draft_version.title %></h3>
      </div>
      <div class="small-12 medium-3 column legislation-question-delete">
        <%= link_to t("admin.legislation.draft_versions.index.delete"),
                    admin_legislation_process_draft_version_path(@process, @draft_version),
                    method: :delete,
                    class: 'button hollow alert' %>
      </div>
    </div>

    <%= render 'form', url: admin_legislation_process_draft_version_path(@process, @draft_version) %>
  </div>
</div>
