<div class="card shadow-sm">
  <%= card_header text: t(".heading", release_type: @releasable_param.name.titleize), close_action_path: [@project, "#{@releasable_param.name.pluralize}"] %>
  <div class="card-body">
    <embed class="embeded-contract-preview mb-3" type="application/pdf" src="<%= url_for [@releasable, :contracts, format: "pdf"] %>" width="90%" height="1200" />

    <%= errors_summary_for @releasable %>
    <%= bootstrap_form_with model: @releasable, method: :post, url: public_send("#{@releasable_param.name}_approvals_path", @releasable), local: true do |form| %>
      <%= card_field_set_tag 'Signature' do %>
        <%= render "shared/signature_fields", form: form, signature_field: 'approved_by_user_signature[data]' %>
      <% end %>
      <div class="row align-items-center text-center mt-4">
        <%= link_to t("shared.cancel"), [@releasable.project, "#{@releasable_param.name.pluralize}"], class: "col-3 text-reset" %>
        <div class="col-9">
          <%= form.button t('.actions.approve'), id: "approve_release", class: class_string("btn btn-block btn-success btn-primary"), data: { disable_with: t("shared.disable_with") } %>
        </div>
      </div>
    <% end %>
  </div>
</div>
