<%= errors_summary_for account %>
<%= bootstrap_form_with model: [:admin, account], local: true do |form| %>
  <%= field_set_tag content_tag(:span, "Account Details", class: "h6 text-muted text-uppercase") do %>
    <%= form.text_field :name %>
    <%= form.select :plan_uid, options_for_account_plan_select, { label: "Plan" }, class: "form-control custom-select" %>
  <% end %>

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