<%= errors_summary_for task_request %>

<%= bootstrap_form_with model: model, local: true do |form| %>
  <%= form.select :status, options_for_select(TaskRequest.statuses.except(:cancelled).keys, task_request.status), {}, class: "form-control custom-select" %>
  <%= form.text_field :deliverable_url  %>

  <div class="row align-items-center text-center mt-4">
    <%= link_to t("shared.cancel"), [:admin, :task_requests], class: "col-3 text-reset" %>
    <div class="col-9">
      <%= form.submit class: class_string("btn btn-block", ["btn-success", "btn-primary"] => task_request.new_record?), data: { disable_with: t("shared.disable_with") } %>
    </div>
  </div>
<% end %>
