%= form_with(model: broker, class: "contents") do |form| %>
<% if broker.errors.any? %>
<%= pluralize(broker.errors.count, "error") %> prohibited this broker from being saved:
<% broker.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :name %>
<%= form.text_field :name, class: ["block shadow-sm rounded-md border px-3 py-2 mt-2 w-full", {"border-gray-400 focus:outline-blue-600": broker.errors[:name].none?, "border-red-400 focus:outline-red-600": broker.errors[:name].any?}] %>
<%= form.label :carrier_id %>
<%= form.text_field :carrier_id, class: ["block shadow-sm rounded-md border px-3 py-2 mt-2 w-full", {"border-gray-400 focus:outline-blue-600": broker.errors[:carrier_id].none?, "border-red-400 focus:outline-red-600": broker.errors[:carrier_id].any?}] %>
<%= form.submit class: "w-full sm:w-auto rounded-md px-3.5 py-2.5 bg-blue-600 hover:bg-blue-500 text-white inline-block font-medium cursor-pointer" %>
<% end %>