<%= form_with model: @post do |form|%>
<%= form.label :project_id %>
<%= form.select :project_id, current_user.projects.map { |project| ["#{project.name} (#{project.github_slug})", project.id] }, {}, class: "bg-[#B8DCFC] text-black border border-gray-300 p-2 rounded w-[400px]" %>
<%= form.label :name %>
<%= form.text_field :name, class: "bg-[#B8DCFC] text-black border border-gray-300 p-2 rounded w-[400px]" %>

How many hours have you spent on this project since your last update?

You've recorded a total of [x] hours thus far!

<%= form.number_field :hours, class: "bg-[#B8DCFC] rounded text-black h-10 w-24 pl-2", max: 5, min: 0 %>
<%= form.label :description, class: "block" %> <%= form.rich_text_area :description, class: "bg-[#B8DCFC] text-black border border-gray-300 p-2 rounded" %>

Attach a screenshot or picture!

<%= form.file_field :featured_image, id: "post_featured_image", class: "hidden", accept: "image/*" %>
<% if @post.errors.any? %>

<%= pluralize(@post.errors.count, "thing") %> you need to fix before posting!

<% end %>
<%= form.submit "Submit", class: "bg-[#62D5C3] text-[#3A5CE1] px-4 py-2 rounded cursor-pointer hover:opacity-100 opacity-80" %>
<% end %>