<%= form_with(model: team, class: "contents") do |form| %> <% if team.errors.any? %>

<%= t('teams.form.errors.header', count: team.errors.count) %>

<% end %>
<%= form.label :name, t('teams.form.name') %> <%= form.text_field :name, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
<% if team.new_record? %> <%= form.submit t('teams.form.create'), class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %> <% else %> <%= form.submit t('teams.form.update'), class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %> <% end %>
<% end %>