%= form_with(model: todo, class: "contents") do |form| %>
<% if todo.errors.any? %>
<%= pluralize(todo.errors.count, "error") %> prohibited this todo from being saved:
<% todo.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :title %>
<%= form.text_field :title, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
<%= form.label :status %>
<%= form.number_field :status, 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 %>