%= form_with(model: category, class: "contents") do |form| %>
<% if category.errors.any? %>
<%= pluralize(category.errors.count, "error") %> prohibited this category from being saved:
<% category.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= required_label_tag(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" %>
<%= form.label :colour, class: "font-bold" %>
<%= form.text_field :colour, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
<%= form.label :badge_foreground_colour, class: "font-bold" %>
<%= form.text_field :badge_foreground_colour, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
<%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
<% end %>